docile 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10cb56eaa668d186cedb1bab3bdda31a84ef4f13
4
- data.tar.gz: 19a69dac94f84a2976212184093cc3a26df2c05c
3
+ metadata.gz: 4df64881f4215d866d038e00f55d5b1ca2a45cb2
4
+ data.tar.gz: 26a8de33f8bf657873666a2754bf09f605334e9d
5
5
  SHA512:
6
- metadata.gz: af34a724f7dc51c9d539c4bdca6e0bb711ead40b9487434eb3dc6b8a06444dea5e258262dc6d4032e5ea3c2fe66c0b58e594f350b5a7ecd2bad7fc947c904904
7
- data.tar.gz: 1df5d786c840df1e52b6809a6e884d0a916662278a1dd7a625e41508e15c92990c920b6c99a30af82dd233b20b880504f5f2707e201019ee9a809598b75a0369
6
+ metadata.gz: 75669d4f578d70ba4c8be7dd6c19676041506e0f9408ba26ea0b1ad7931cf59636ccf36a4363ae709a1476464caba5ca1c429b07233dda7d797d5007f3c0af10
7
+ data.tar.gz: e0e0e7364436ce92f4ab5efc52c2782e5da098d302652ca8698d74bcccc27c695b269c04ced3d224eec1a5b3833ba91c44232a2cc4c55fe061504246a715ef49
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
+ - ruby-head
4
5
  - 2.1.2
5
6
  - 2.1.1
6
7
  - 2.1.0
@@ -9,6 +10,12 @@ rvm:
9
10
  - 1.9.2
10
11
  - 1.8.7
11
12
  - ree
12
- - jruby-18mode
13
+ - jruby-head
13
14
  - jruby-19mode
15
+ - jruby-18mode
14
16
  - rbx-2
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: ruby-head
20
+ - rvm: jruby-head
21
+ fast_finish: true
data/HISTORY.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # HISTORY
2
2
 
3
+ ## [v1.1.5 (Jun 15, 2014)](http://github.com/ms-ati/docile/compare/v1.1.4...v1.1.5)
4
+
5
+ - as much as possible, loosen version restrictions on development dependencies
6
+ - clarify gemspec settings as much as possible
7
+ - bump rspec dependency to 3.0.x
8
+
3
9
  ## [v1.1.4 (Jun 11, 2014)](http://github.com/ms-ati/docile/compare/v1.1.3...v1.1.4)
4
10
 
5
11
  - Special thanks to Ken Dreyer (@ktdreyer):
data/Rakefile CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rake/clean'
2
2
  require 'bundler/gem_tasks'
3
3
  require 'rspec/core/rake_task'
4
+ require File.expand_path('on_what', File.dirname(__FILE__))
4
5
 
5
6
  # Default task for `rake` is to run rspec
6
7
  task :default => [:spec]
@@ -11,12 +12,13 @@ RSpec::Core::RakeTask.new
11
12
  # Configure `rake clobber` to delete all generated files
12
13
  CLOBBER.include('pkg', 'doc', 'coverage')
13
14
 
14
- # Only configure yard doc generation when *not* on Travis
15
- if ENV['CI'] != 'true'
16
- require "github/markup"
17
- require "redcarpet"
18
- require "yard"
19
- require "yard/rake/yardoc_task"
15
+ # To limit needed compatibility with versions of dependencies, only configure
16
+ # yard doc generation when *not* on Travis, JRuby, or 1.8
17
+ if !on_travis? && !on_jruby? && !on_1_8?
18
+ require 'github/markup'
19
+ require 'redcarpet'
20
+ require 'yard'
21
+ require 'yard/rake/yardoc_task'
20
22
 
21
23
  YARD::Rake::YardocTask.new do |t|
22
24
  OTHER_PATHS = %w()
@@ -1,36 +1,43 @@
1
+ require File.expand_path('on_what', File.dirname(__FILE__))
1
2
  $:.push File.expand_path('../lib', __FILE__)
2
3
  require 'docile/version'
3
4
 
4
5
  Gem::Specification.new do |s|
5
6
  s.name = 'docile'
6
7
  s.version = Docile::VERSION
7
- s.authors = ['Marc Siegel']
8
- s.email = %w(msiegel@usainnov.com)
8
+ s.author = 'Marc Siegel'
9
+ s.email = 'marc@usainnov.com'
9
10
  s.homepage = 'https://ms-ati.github.io/docile/'
10
11
  s.summary = 'Docile keeps your Ruby DSLs tame and well-behaved'
11
12
  s.description = 'Docile turns any Ruby object into a DSL. Especially useful with the Builder pattern.'
12
13
  s.license = 'MIT'
13
14
 
14
- s.rubyforge_project = 'docile'
15
-
15
+ # Files included in the gem
16
16
  s.files = `git ls-files`.split("\n")
17
17
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = %w(lib)
20
20
 
21
- # Running rspec tests from rake
22
- s.add_development_dependency 'rake', '>= 10.1.1'
23
- s.add_development_dependency 'rspec', '~> 2.14.0'
24
- s.add_development_dependency 'mime-types', '~> 1.25.1'
21
+ # Specify oldest supported Ruby version
22
+ s.required_ruby_version = '>= 1.8.7'
23
+
24
+ # Run rspec tests from rake
25
+ s.add_development_dependency 'rake'
26
+ s.add_development_dependency 'rspec', '~> 3.0.0'
27
+
28
+ # NOTE: needed for Travis builds on 1.8, but can't yet reproduce failure locally
29
+ s.add_development_dependency 'mime-types', '~> 1.25.1' if on_1_8?
25
30
 
26
- if !(defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
31
+ # To limit needed compatibility with versions of dependencies, only configure
32
+ # yard doc generation when *not* on Travis, JRuby, or 1.8
33
+ if !on_travis? && !on_jruby? && !on_1_8?
27
34
  # Github flavored markdown in YARD documentation
28
35
  # http://blog.nikosd.com/2011/11/github-flavored-markdown-in-yard.html
29
36
  s.add_development_dependency 'yard'
30
- s.add_development_dependency 'redcarpet', '2.3.0' # because 1.8
37
+ s.add_development_dependency 'redcarpet'
31
38
  s.add_development_dependency 'github-markup'
32
39
  end
33
40
 
34
- # Coveralls test coverage tool
41
+ # Coveralls test coverage tool, basically hosted SimpleCov
35
42
  s.add_development_dependency 'coveralls'
36
43
  end
@@ -1,4 +1,4 @@
1
1
  module Docile
2
2
  # The current version of this library
3
- VERSION = '1.1.4'
3
+ VERSION = '1.1.5'
4
4
  end
@@ -0,0 +1,14 @@
1
+ # NOTE: Very simple tests for what system we are on, extracted for sharing
2
+ # between Rakefile, gemspec, and spec_helper. Not for use in actual library.
3
+
4
+ def on_travis?
5
+ ENV['CI'] == 'true'
6
+ end
7
+
8
+ def on_jruby?
9
+ (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE)
10
+ end
11
+
12
+ def on_1_8?
13
+ RUBY_VERSION.start_with? '1.8'
14
+ end
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'singleton'
2
3
 
3
4
  describe Docile do
4
5
 
@@ -1,9 +1,11 @@
1
+ require File.expand_path('on_what', File.dirname(File.dirname(__FILE__)))
2
+
1
3
  begin
2
4
  require 'simplecov'
3
5
  require 'coveralls'
4
6
 
5
7
  # On Ruby 1.9+ use SimpleCov and publish to Coveralls.io
6
- if !RUBY_VERSION.start_with? '1.8'
8
+ if !on_1_8?
7
9
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
8
10
  SimpleCov::Formatter::HTMLFormatter,
9
11
  Coveralls::SimpleCov::Formatter
@@ -26,12 +28,3 @@ $LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include? lib_dir
26
28
 
27
29
  # Require Docile again, now with coverage enabled on 1.9+
28
30
  require 'docile'
29
-
30
- require 'singleton'
31
- require 'rspec'
32
-
33
- RSpec.configure do |config|
34
- config.expect_with :rspec do |c|
35
- c.syntax = :expect
36
- end
37
- end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Siegel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-12 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,42 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 10.1.1
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 10.1.1
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.14.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 2.14.0
41
- - !ruby/object:Gem::Dependency
42
- name: mime-types
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 1.25.1
33
+ version: 3.0.0
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: 1.25.1
40
+ version: 3.0.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: yard
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -70,16 +56,16 @@ dependencies:
70
56
  name: redcarpet
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - '='
59
+ - - ">="
74
60
  - !ruby/object:Gem::Version
75
- version: 2.3.0
61
+ version: '0'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - '='
66
+ - - ">="
81
67
  - !ruby/object:Gem::Version
82
- version: 2.3.0
68
+ version: '0'
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: github-markup
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -110,8 +96,7 @@ dependencies:
110
96
  version: '0'
111
97
  description: Docile turns any Ruby object into a DSL. Especially useful with the Builder
112
98
  pattern.
113
- email:
114
- - msiegel@usainnov.com
99
+ email: marc@usainnov.com
115
100
  executables: []
116
101
  extensions: []
117
102
  extra_rdoc_files: []
@@ -133,6 +118,7 @@ files:
133
118
  - lib/docile/execution.rb
134
119
  - lib/docile/fallback_context_proxy.rb
135
120
  - lib/docile/version.rb
121
+ - on_what.rb
136
122
  - spec/docile_spec.rb
137
123
  - spec/spec_helper.rb
138
124
  homepage: https://ms-ati.github.io/docile/
@@ -147,15 +133,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
133
  requirements:
148
134
  - - ">="
149
135
  - !ruby/object:Gem::Version
150
- version: '0'
136
+ version: 1.8.7
151
137
  required_rubygems_version: !ruby/object:Gem::Requirement
152
138
  requirements:
153
139
  - - ">="
154
140
  - !ruby/object:Gem::Version
155
141
  version: '0'
156
142
  requirements: []
157
- rubyforge_project: docile
158
- rubygems_version: 2.2.0
143
+ rubyforge_project:
144
+ rubygems_version: 2.2.2
159
145
  signing_key:
160
146
  specification_version: 4
161
147
  summary: Docile keeps your Ruby DSLs tame and well-behaved