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 +4 -4
- data/.travis.yml +8 -1
- data/HISTORY.md +6 -0
- data/Rakefile +8 -6
- data/docile.gemspec +18 -11
- data/lib/docile/version.rb +1 -1
- data/on_what.rb +14 -0
- data/spec/docile_spec.rb +1 -0
- data/spec/spec_helper.rb +3 -10
- metadata +15 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4df64881f4215d866d038e00f55d5b1ca2a45cb2
|
4
|
+
data.tar.gz: 26a8de33f8bf657873666a2754bf09f605334e9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75669d4f578d70ba4c8be7dd6c19676041506e0f9408ba26ea0b1ad7931cf59636ccf36a4363ae709a1476464caba5ca1c429b07233dda7d797d5007f3c0af10
|
7
|
+
data.tar.gz: e0e0e7364436ce92f4ab5efc52c2782e5da098d302652ca8698d74bcccc27c695b269c04ced3d224eec1a5b3833ba91c44232a2cc4c55fe061504246a715ef49
|
data/.travis.yml
CHANGED
@@ -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-
|
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
|
-
#
|
15
|
-
|
16
|
-
|
17
|
-
require
|
18
|
-
require
|
19
|
-
require
|
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()
|
data/docile.gemspec
CHANGED
@@ -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.
|
8
|
-
s.email =
|
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
|
-
|
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
|
-
#
|
22
|
-
s.
|
23
|
-
|
24
|
-
|
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
|
-
|
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'
|
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
|
data/lib/docile/version.rb
CHANGED
data/on_what.rb
ADDED
@@ -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
|
data/spec/docile_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -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 !
|
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
|
+
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-
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
158
|
-
rubygems_version: 2.2.
|
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
|