boolean_class 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f59330b066d2bc03cc6c0797d2420fe6da669337
4
+ data.tar.gz: e11aa2e904d3c4db531fdbd3a70913d03e92f782
5
+ SHA512:
6
+ metadata.gz: d136ab92a90b7b017bedbfbb3e7a643a27fa6c340bd9052b511b2dfbb822973fc4c4e7c6b1d5fa486ce90865bdda02bc8b8d6a387084d509038d5ff016b2bd7a
7
+ data.tar.gz: 4caa144496ce2d8989dbc92319a33b9562e7e8ea4f838d03bc9d939cf2851d54c7df261b4b79ef1d448f090c0bb69b339de6dbf6a4060d1646c3c9d1b27fee25
@@ -0,0 +1 @@
1
+ 2.0.0-p0
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 1.9.2
3
4
  - 1.9.3
4
- notifications:
5
- email:
6
- - elgalu3@gmail.com
5
+ - 2.0.0
6
+ - ruby-head
data/.yardopts CHANGED
@@ -2,4 +2,4 @@
2
2
  --title 'BooleanClass API Documentation'
3
3
  --charset utf-8
4
4
  -
5
- LICENSE.txt
5
+ LICENSE.md
@@ -0,0 +1,33 @@
1
+ ## [In git](https://github.com/elgalu/boolean_class/compare/v0.0.2...HEAD)
2
+
3
+ ### New Features
4
+ * n/a
5
+
6
+ ### Bugfixes
7
+ * n/a
8
+
9
+ ### Chores
10
+ * Added this Change Log file (Leo Gallucci)
11
+ * Added Code Climate badge and Dependency Status badge (Leo Gallucci)
12
+ * README.md, Gemfile, gemspec improvements (Leo Gallucci)
13
+ * Confirmed support for ruby 2.0.0-p0, added more rubies to travis, added .ruby-version file (Leo Gallucci)
14
+
15
+ ## [v0.0.2](https://github.com/elgalu/boolean_class/compare/v0.0.1...v0.0.2)
16
+
17
+ ### New Features
18
+ * n/a
19
+
20
+ ### Bugfixes
21
+ * n/a
22
+
23
+ ### Chores
24
+ * Added simplecov for code testing converage (Leo Gallucci)
25
+ * Added travis for Continuous Integration testing (Leo Gallucci)
26
+
27
+ ## [v0.0.1](https://github.com/elgalu/boolean_class/tree/v0.0.1)
28
+
29
+ ## First gem release
30
+
31
+ ### Features:
32
+ * Convert anything to Boolean with Boolean() method (Leo Gallucci)
33
+ * Check is_a? or kind_of? (Leo Gallucci)
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in strongly_typed.gemspec
3
+ # Specify your gem's dependencies in boolean_class.gemspec
4
4
  gemspec
File without changes
data/README.md CHANGED
@@ -1,32 +1,34 @@
1
1
  # BooleanClass
2
2
 
3
- [![Build Status](https://travis-ci.org/elgalu/boolean_class.png)](https://travis-ci.org/elgalu/boolean_class)
3
+ [![Build Status][BS img]][Build Status]
4
+ [![Dependency Status][DS img]][Dependency Status]
5
+ [![Code Climate][CC img]][Code Climate]
4
6
 
5
- Performs type conversion from anything to true:TrueClass / false:FalseClass
6
-
7
- Similar to [boolean][] gem but:
8
-
9
- - without parse_bool()
10
- - without raising exceptions
11
- - without to_bool() to_b() methods
7
+ ## Description
12
8
 
13
- ## Installation
9
+ Performs type conversion from anything to true:TrueClass / false:FalseClass
14
10
 
15
- Add this line to your application's Gemfile:
11
+ ```ruby
12
+ Boolean(0.0) #=> true
13
+ FalseClass < Boolean #=> true
14
+ ```
16
15
 
17
- gem 'boolean_class'
16
+ ## Anti-Features
18
17
 
19
- And then execute:
18
+ Similar to [boolean][] gem but:
20
19
 
21
- $ bundle
20
+ - Without parse_bool()
21
+ - Without raising exceptions
22
+ - Without to_bool() to_b() methods
23
+ - Does not pollute Object or Kernel; polite monkey patching with `include BooleanClass::Conversion`
22
24
 
23
- Or install it yourself as:
25
+ ## Installation
24
26
 
25
- $ gem install boolean_class
27
+ `$ gem install boolean_class` or add to your [Gemfile][] this line: `gem 'boolean_class'` then run [bundle install][]
26
28
 
27
29
  ## Usage
28
30
 
29
- Just `require 'boolean_class'` and then use it.
31
+ Just `require 'boolean_class'` and then use it as:
30
32
 
31
33
  ### As a conversion method Boolean()
32
34
 
@@ -65,10 +67,38 @@ FalseClass < Boolean #=> true
65
67
 
66
68
  ## Contributing
67
69
 
68
- 1. Fork it
69
- 2. Create your feature branch (`git checkout -b my-new-feature`)
70
- 3. Commit your changes (`git commit -am 'Add some feature'`)
71
- 4. Push to the branch (`git push origin my-new-feature`)
72
- 5. Create new Pull Request
70
+ 1. Fork it.
71
+ 2. Make your feature addition or bug fix and create your feature branch.
72
+ 3. Update the [Change Log][].
73
+ 3. Add specs/tests for it. This is important so I don't break it in a future version unintentionally.
74
+ 4. Commit, create a new Pull Request.
75
+ 5. Check that your pull request passes the [build][travis pull requests].
76
+
77
+ ## License
78
+
79
+ Released under the MIT License. See the [LICENSE][] file for further details.
80
+
81
+ ## Links
82
+
83
+ [RubyGems][] | [Documentation][] | [Source][] | [Bugtracker][] | [Build Status][] | [Dependency Status][] | [Code Climate][]
84
+
73
85
 
74
86
  [boolean]: http://rubygems.org/gems/boolean
87
+ [bundle install]: http://gembundler.com/man/bundle-install.1.html
88
+ [Gemfile]: http://gembundler.com/man/gemfile.5.html
89
+ [LICENSE]: LICENSE.md
90
+ [Change Log]: CHANGELOG.md
91
+
92
+ [RubyGems]: https://rubygems.org/gems/boolean_class
93
+ [Documentation]: http://rubydoc.info/gems/boolean_class
94
+ [Source]: https://github.com/elgalu/boolean_class
95
+ [Bugtracker]: https://github.com/elgalu/boolean_class/issues
96
+
97
+ [BS img]: https://travis-ci.org/elgalu/boolean_class.png
98
+ [DS img]: https://gemnasium.com/elgalu/boolean_class.png
99
+ [CC img]: https://codeclimate.com/github/elgalu/boolean_class.png
100
+
101
+ [Build Status]: https://travis-ci.org/elgalu/boolean_class
102
+ [travis pull requests]: https://travis-ci.org/elgalu/boolean_class/pull_requests
103
+ [Dependency Status]: https://gemnasium.com/elgalu/boolean_class
104
+ [Code Climate]: https://codeclimate.com/github/elgalu/boolean_class
@@ -9,13 +9,10 @@ Gem::Specification.new do |gem|
9
9
  gem.name = "boolean_class"
10
10
  gem.version = BooleanClass::VERSION
11
11
  gem.summary = %q{Performs type conversion from anything to true:TrueClass / false:FalseClass}
12
- gem.description = <<-DESC
13
- Performs type conversion from anything to true:TrueClass / false:FalseClass.
14
- Similar to boolean gem but without parse_bool(), to_bool() and to_b() and without raising exceptions.
15
- DESC
12
+ gem.description = gem.summary
16
13
 
17
- gem.required_ruby_version = '>= 1.9.3'
18
- gem.required_rubygems_version = '>= 1.8.11'
14
+ gem.required_ruby_version = '>= 1.9.2'
15
+ gem.required_rubygems_version = '>= 1.8'
19
16
 
20
17
  gem.license = 'MIT'
21
18
 
@@ -28,8 +25,9 @@ DESC
28
25
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
29
26
  gem.require_paths = ["lib"]
30
27
 
31
- gem.add_development_dependency "rake", "~> 10.0"
32
- gem.add_development_dependency "rspec", "~> 2.12"
28
+ gem.add_development_dependency "bundler", ">= 1.2"
29
+ gem.add_development_dependency "rake"
30
+ gem.add_development_dependency "rspec", "~> 2.13"
33
31
  gem.add_development_dependency "redcarpet", "~> 2.2"
34
32
  gem.add_development_dependency "yard", "~> 0.8"
35
33
  gem.add_development_dependency "simplecov", "~> 0.7"
@@ -1,3 +1,3 @@
1
1
  module BooleanClass
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,52 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boolean_class
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Leo Gallucci
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
11
+ date: 2013-02-27 00:00:00.000000000 Z
13
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.2'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '1.2'
14
27
  - !ruby/object:Gem::Dependency
15
28
  name: rake
16
29
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
30
  requirements:
19
- - - ~>
31
+ - - '>='
20
32
  - !ruby/object:Gem::Version
21
- version: '10.0'
33
+ version: '0'
22
34
  type: :development
23
35
  prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
37
  requirements:
27
- - - ~>
38
+ - - '>='
28
39
  - !ruby/object:Gem::Version
29
- version: '10.0'
40
+ version: '0'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: rspec
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
45
  - - ~>
36
46
  - !ruby/object:Gem::Version
37
- version: '2.12'
47
+ version: '2.13'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
52
  - - ~>
44
53
  - !ruby/object:Gem::Version
45
- version: '2.12'
54
+ version: '2.13'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: redcarpet
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
59
  - - ~>
52
60
  - !ruby/object:Gem::Version
@@ -54,7 +62,6 @@ dependencies:
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
66
  - - ~>
60
67
  - !ruby/object:Gem::Version
@@ -62,7 +69,6 @@ dependencies:
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: yard
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
73
  - - ~>
68
74
  - !ruby/object:Gem::Version
@@ -70,7 +76,6 @@ dependencies:
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
80
  - - ~>
76
81
  - !ruby/object:Gem::Version
@@ -78,7 +83,6 @@ dependencies:
78
83
  - !ruby/object:Gem::Dependency
79
84
  name: simplecov
80
85
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
86
  requirements:
83
87
  - - ~>
84
88
  - !ruby/object:Gem::Version
@@ -86,17 +90,11 @@ dependencies:
86
90
  type: :development
87
91
  prerelease: false
88
92
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
93
  requirements:
91
94
  - - ~>
92
95
  - !ruby/object:Gem::Version
93
96
  version: '0.7'
94
- description: ! 'Performs type conversion from anything to true:TrueClass / false:FalseClass.
95
-
96
- Similar to boolean gem but without parse_bool(), to_bool() and to_b() and without
97
- raising exceptions.
98
-
99
- '
97
+ description: Performs type conversion from anything to true:TrueClass / false:FalseClass
100
98
  email:
101
99
  - elgalu3@gmail.com
102
100
  executables: []
@@ -105,10 +103,12 @@ extra_rdoc_files: []
105
103
  files:
106
104
  - .gitignore
107
105
  - .rspec
106
+ - .ruby-version
108
107
  - .travis.yml
109
108
  - .yardopts
109
+ - CHANGELOG.md
110
110
  - Gemfile
111
- - LICENSE.txt
111
+ - LICENSE.md
112
112
  - README.md
113
113
  - Rakefile
114
114
  - boolean_class.gemspec
@@ -123,27 +123,26 @@ files:
123
123
  homepage: https://github.com/elgalu/boolean_class
124
124
  licenses:
125
125
  - MIT
126
+ metadata: {}
126
127
  post_install_message:
127
128
  rdoc_options: []
128
129
  require_paths:
129
130
  - lib
130
131
  required_ruby_version: !ruby/object:Gem::Requirement
131
- none: false
132
132
  requirements:
133
- - - ! '>='
133
+ - - '>='
134
134
  - !ruby/object:Gem::Version
135
- version: 1.9.3
135
+ version: 1.9.2
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
- none: false
138
137
  requirements:
139
- - - ! '>='
138
+ - - '>='
140
139
  - !ruby/object:Gem::Version
141
- version: 1.8.11
140
+ version: '1.8'
142
141
  requirements: []
143
142
  rubyforge_project:
144
- rubygems_version: 1.8.25
143
+ rubygems_version: 2.0.0
145
144
  signing_key:
146
- specification_version: 3
145
+ specification_version: 4
147
146
  summary: Performs type conversion from anything to true:TrueClass / false:FalseClass
148
147
  test_files:
149
148
  - spec/conversion_spec.rb