Skip to content

Commit

Permalink
1.0 release
Browse files Browse the repository at this point in the history
- work with any pakyow versions (will be locked down after 1.0)
- update gemspec to be consistent with new format
- move version to code
  • Loading branch information
bryanp committed Oct 18, 2015
1 parent 7fd63ba commit a200b04
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 96 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ build/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# Gemfile.lock
Gemfile.lock
# .ruby-version
# .ruby-gemset
*.gem

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 1.0.0 / 2015-10-18

* Remove version requirement from Pakyow gems
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"
source 'https://rubygems.org'

gem 'slim', '~> 3.0'
gem 'pakyow', '~> 0.9'
gem 'pakyow', '~> 0'

group :test do
gem 'rake'
Expand Down
59 changes: 0 additions & 59 deletions Gemfile.lock

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

20 changes: 10 additions & 10 deletions lib/pakyow-slim.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
require 'slim'

module SetSlimOptions
Slim::Engine.set_options(
shortcut: {
'@@' => { tag: 'div', attr: 'data-scope' },
'@' => { tag: 'div', attr: 'data-prop' },
'#' => { tag: 'div', attr: 'id' },
'.' => { tag: 'div', attr: 'class' }
}
)
end
require 'version'

Slim::Engine.set_options(
shortcut: {
'@@' => { tag: 'div', attr: 'data-scope' },
'@' => { tag: 'div', attr: 'data-prop' },
'#' => { tag: 'div', attr: 'id' },
'.' => { tag: 'div', attr: 'class' }
}
)

Pakyow::App.processor :slim do |content|
Slim::Template.new { @data = content }.render
Expand Down
5 changes: 5 additions & 0 deletions lib/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Pakyow
module Slim
VERSION = '1.0.0'.freeze
end
end
41 changes: 18 additions & 23 deletions pakyow-slim.gemspec
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
GEM_NAME = 'pakyow-slim'
require File.expand_path('../lib/version', __FILE__)

version = File.read(File.join(File.expand_path("../VERSION", __FILE__))).strip
presenter_path = File.exists?(GEM_NAME) ? GEM_NAME : '.'
Gem::Specification.new do |spec|
spec.name = 'pakyow-slim'
spec.summary = 'Pakyow Slim'
spec.description = 'Slim support for Pakyow views'
spec.author = 'Dan McGuire'
spec.email = '[email protected]'
spec.homepage = 'http://pakyow.org'
spec.version = Pakyow::Slim::VERSION
spec.require_path = 'lib'
spec.files = `git ls-files`.split("\n")
spec.license = 'MIT'

Gem::Specification.new do |s|
s.name = 'pakyow-slim'
s.version = version
s.licenses = ['MIT']
s.summary = "Slim processor for Pakyow views."
s.description = "A view processor that will convert files under view/ with the .slim extension into html."
s.authors = ["Dan McGuire"]
s.email = '[email protected]'
s.homepage = 'http://slim-lang.com'
s.files = Dir[
File.join(presenter_path, 'README'),
File.join(presenter_path, 'MIT-LICENSE'),
File.join(presenter_path, 'VERSION'),
File.join(presenter_path, 'lib','*')
]
spec.add_dependency('pakyow-support', '~> 0')
spec.add_dependency('pakyow-core', '~> 0')
spec.add_dependency('pakyow-presenter', '~> 0')

s.add_dependency('pakyow-core', '~> 0.9')
s.add_dependency('pakyow-presenter', '~> 0.9')
s.add_dependency('slim', '~> 3.0')
spec.add_dependency('slim', '~> 3.0')

s.add_development_dependency('rake', '~> 10.4')
s.add_development_dependency('minitest', '~> 5.8')
spec.add_development_dependency('rake', '~> 10.4')
spec.add_development_dependency('minitest', '~> 5.8')
end
1 change: 1 addition & 0 deletions rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Rake::TestTask.new("test") do |t|
t.verbose = false
t.warning = false
end

0 comments on commit a200b04

Please sign in to comment.