bicycle 0.5.2 → 0.6.0

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
  SHA256:
3
- metadata.gz: 80fb7b1eb48d03dd8272857a994d7ec196c1011cf9029bc6a0d5ba8eca3ba541
4
- data.tar.gz: d6e5729509f13e3d4f191652ccd02be49b314f50b272a5e944e109483be5cbaa
3
+ metadata.gz: '096df84d36f3f6c52bf23dd8968bb40c5445b3196f846fe760e81fab882b1275'
4
+ data.tar.gz: 36264099ac612b86e34bc9b2c0e27dad8080298dbd3286cb0b9db5c7e1cb6813
5
5
  SHA512:
6
- metadata.gz: 9a946c6eb9fe81b55cc55404a800f5d069cc1e992b98ce142b7720ce2339dfbd0efe5af17a823b239a616f18e5a7bbc089249eab27fa221ca1664b54985295b6
7
- data.tar.gz: 0c0788d036d5898c2ddef7431e83ba9b59617742f2d0bc277fcf7ab5a94edfdff1649f49451c3a84bf68bb58806dff10fed4fd6c5b14eaef132380aefe85fb50
6
+ metadata.gz: 016bff4680b134d8707a58718b8856590a8a64c4fb7c7bec5805d08da6fdb29b4d1bc991723ab8e570f789acfbb612308dd65d226c6810340e5ddd778b862a76
7
+ data.tar.gz: 9c7329c5f20224abf32b6181f8245861c48e4bf757d7ea103761bd7ba9c61881ee7683282f467979def68efe9a657fe408876233a67e03341f6b1b6c8cabd51e
@@ -0,0 +1,54 @@
1
+ # rcov generated
2
+ coverage
3
+ coverage.data
4
+
5
+ # rdoc generated
6
+ rdoc
7
+
8
+ # yard generated
9
+ doc
10
+ .yardoc
11
+
12
+ # bundler
13
+ .bundle
14
+
15
+ # jeweler generated
16
+ pkg
17
+
18
+ # Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
19
+ #
20
+ # * Create a file at ~/.gitignore
21
+ # * Include files you want ignored
22
+ # * Run: git config --global core.excludesfile ~/.gitignore
23
+ #
24
+ # After doing this, these files will be ignored in all your git projects,
25
+ # saving you from having to 'pollute' every project you touch with them
26
+ #
27
+ # Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
28
+ #
29
+ # For MacOS:
30
+ #
31
+ #.DS_Store
32
+
33
+ # For TextMate
34
+ #*.tmproj
35
+ #tmtags
36
+
37
+ # For emacs:
38
+ #*~
39
+ #\#*
40
+ #.\#*
41
+
42
+ # For vim:
43
+ #*.swp
44
+
45
+ # For redcar:
46
+ #.redcar
47
+
48
+ # For rubinius:
49
+ #*.rbc
50
+
51
+ .rvmrc
52
+
53
+ .DS_Store
54
+ *.gem
@@ -1 +1 @@
1
- 2.5.1
1
+ 2.6.0
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at stuart.chinery@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,13 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
- group :development do
6
- gem "bundler", "~> 1.16"
7
- gem "jeweler", "~> 2.3"
8
- gem "minitest", "~> 5.0"
9
- gem "minitest-fail-fast", "~> 0.1"
10
- gem "minitest-macos-notification", "~> 0"
11
- gem "minitest-reporters", "~> 1.3"
12
- gem "yard", "~> 0.9"
13
- end
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in minitest-macos-notification-reporter.gemspec
8
+ gemspec
@@ -1,83 +1,42 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ bicycle (0.6.0)
5
+
1
6
  GEM
2
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
3
8
  specs:
4
- addressable (2.4.0)
5
9
  ansi (1.5.0)
6
10
  builder (3.2.3)
7
- descendants_tracker (0.0.4)
8
- thread_safe (~> 0.3, >= 0.3.1)
9
- faraday (0.9.2)
10
- multipart-post (>= 1.2, < 3)
11
- git (1.5.0)
12
- github_api (0.16.0)
13
- addressable (~> 2.4.0)
14
- descendants_tracker (~> 0.0.4)
15
- faraday (~> 0.8, < 0.10)
16
- hashie (>= 3.4)
17
- mime-types (>= 1.16, < 3.0)
18
- oauth2 (~> 1.0)
19
- hashie (3.6.0)
20
- highline (2.0.0)
21
- jeweler (2.3.9)
22
- builder
23
- bundler
24
- git (>= 1.2.5)
25
- github_api (~> 0.16.0)
26
- highline (>= 1.6.15)
27
- nokogiri (>= 1.5.10)
28
- psych
29
- rake
30
- rdoc
31
- semver2
32
- jwt (1.5.6)
33
- mime-types (2.99.3)
34
- mini_portile2 (2.3.0)
35
11
  minitest (5.11.3)
36
12
  minitest-fail-fast (0.1.0)
37
13
  minitest (~> 5)
38
- minitest-macos-notification (0.0.3)
14
+ minitest-macos-notification (0.0.4)
39
15
  minitest (~> 5.0)
40
- minitest-reporters (~> 1.3.1)
16
+ minitest-reporters (~> 1.3)
41
17
  os (~> 1.0)
42
18
  terminal-notifier (~> 2.0)
43
- minitest-reporters (1.3.2)
19
+ minitest-reporters (1.3.5)
44
20
  ansi
45
21
  builder
46
22
  minitest (>= 5.0)
47
23
  ruby-progressbar
48
- multi_json (1.13.1)
49
- multi_xml (0.6.0)
50
- multipart-post (2.0.0)
51
- nokogiri (1.8.4)
52
- mini_portile2 (~> 2.3.0)
53
- oauth2 (1.4.0)
54
- faraday (>= 0.8, < 0.13)
55
- jwt (~> 1.0)
56
- multi_json (~> 1.3)
57
- multi_xml (~> 0.5)
58
- rack (>= 1.2, < 3)
59
24
  os (1.0.0)
60
- psych (3.0.2)
61
- rack (2.0.5)
62
- rake (12.3.1)
63
- rdoc (6.0.4)
25
+ rake (12.3.2)
64
26
  ruby-progressbar (1.10.0)
65
- semver2 (3.4.2)
66
27
  terminal-notifier (2.0.0)
67
- thread_safe (0.3.6)
68
- yard (0.9.16)
69
28
 
70
29
  PLATFORMS
71
30
  ruby
72
31
 
73
32
  DEPENDENCIES
33
+ bicycle!
74
34
  bundler (~> 1.16)
75
- jeweler (~> 2.3)
76
35
  minitest (~> 5.0)
77
36
  minitest-fail-fast (~> 0.1)
78
37
  minitest-macos-notification (~> 0)
79
38
  minitest-reporters (~> 1.3)
80
- yard (~> 0.9)
39
+ rake (~> 12.0)
81
40
 
82
41
  BUNDLED WITH
83
- 1.16.4
42
+ 1.17.2
@@ -1,20 +1,21 @@
1
- Copyright (c) 2012 Stuart Chinery
1
+ The MIT License (MIT)
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
3
+ Copyright (c) 2018 Stuart Chinery
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md CHANGED
@@ -1,13 +1,11 @@
1
- bicycle
2
- -------
1
+ # bicycle
3
2
 
4
3
  [![Gem Version](https://badge.fury.io/rb/bicycle.svg)](http://badge.fury.io/rb/bicycle)
5
4
  [![Build Status](https://travis-ci.org/sleepingstu/bicycle.svg?branch=master)](https://travis-ci.org/sleepingstu/bicycle)
6
5
 
7
6
  A convenience gem for cycling through a set of values, ported from the ['cycle'](http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-cycle) functionality found in Rails. It is independent of which framework you use so will run in Sinatra, Padrino or straight up Ruby itself.
8
7
 
9
- Installation
10
- ============
8
+ ## Installation
11
9
 
12
10
  ```
13
11
  gem install bicycle
@@ -19,8 +17,7 @@ In a Gemfile:
19
17
  gem 'bicycle'
20
18
  ```
21
19
 
22
- Usage
23
- =====
20
+ ## Usage
24
21
 
25
22
  Add the following to your app.rb file:
26
23
 
@@ -74,20 +71,20 @@ For example:
74
71
  <% end %>
75
72
  ```
76
73
 
77
- Contributing to bicycle
78
- =======================
74
+ ## Development
79
75
 
80
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
81
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
82
- * Fork the project.
83
- * Start a feature/bugfix branch.
84
- * Commit and push until you are happy with your contribution.
85
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
86
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
76
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
87
77
 
88
- Copyright
89
- =========
78
+ To install this gem onto your local machine, run `bundle exec rake install`.
90
79
 
91
- Copyright (c) 2012 [Stuart Chinery](http://www.headlondon.com/who-we-are#stuart-chinery) and [Dave Hrycyszyn](http://www.headlondon.com/who-we-are#david-hrycyszyn) - [headlondon.com](http://www.headlondon.com).
80
+ ## Contributing
92
81
 
93
- See LICENSE.txt for further details.
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/schinery/bicycle. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
83
+
84
+ ## License
85
+
86
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
87
+
88
+ ## Code of Conduct
89
+
90
+ Everyone interacting in the `Minitest::MacosNotification` project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/schinery/bicycle/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,38 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "rubygems"
4
- require "bundler"
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- warn e.message
9
- warn "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
- require "rake"
13
-
14
- require "jeweler"
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "bicycle"
18
- gem.homepage = "http://github.com/schinery/bicycle"
19
- gem.license = "MIT"
20
- gem.summary = %(Why walk when you can cycle)
21
- gem.description = %(A convenience gem for cycling through a set of values, ported from the 'cycle' functionality found in Rails. It is independent of which framework you use so will run in Sinatra, Padrino or straight up Ruby itself.)
22
- gem.email = "stuart.chinery@gmail.com"
23
- gem.authors = ["Stuart Chinery", "Dave Hrycyszyn"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
3
+ require "bundler/gem_tasks"
28
4
  require "rake/testtask"
29
- Rake::TestTask.new(:test) do |test|
30
- test.libs << "lib" << "test"
31
- test.pattern = "test/**/*_test.rb"
32
- test.verbose = true
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
33
10
  end
34
11
 
35
12
  task default: :test
36
-
37
- require "yard"
38
- YARD::Rake::YardocTask.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.6.0
@@ -1,74 +1,34 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
- # stub: bicycle 0.5.2 ruby lib
1
+ # frozen_string_literal: true
6
2
 
7
- Gem::Specification.new do |s|
8
- s.name = "bicycle".freeze
9
- s.version = "0.5.2"
3
+ lib = File.expand_path("lib", __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require "bicycle/version"
10
6
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib".freeze]
13
- s.authors = ["Stuart Chinery".freeze, "Dave Hrycyszyn".freeze]
14
- s.date = "2018-08-28"
15
- s.description = "A convenience gem for cycling through a set of values, ported from the 'cycle' functionality found in Rails. It is independent of which framework you use so will run in Sinatra, Padrino or straight up Ruby itself.".freeze
16
- s.email = "stuart.chinery@gmail.com".freeze
17
- s.extra_rdoc_files = [
18
- "LICENSE.txt",
19
- "README.md"
20
- ]
21
- s.files = [
22
- ".document",
23
- ".rubocop.yml",
24
- ".ruby-version",
25
- ".travis.yml",
26
- "Gemfile",
27
- "Gemfile.lock",
28
- "LICENSE.txt",
29
- "README.md",
30
- "Rakefile",
31
- "VERSION",
32
- "bicycle.gemspec",
33
- "lib/bicycle.rb",
34
- "lib/bicycle/methods.rb",
35
- "test/bicycle/methods_test.rb",
36
- "test/dummy_app.rb",
37
- "test/helper.rb"
38
- ]
39
- s.homepage = "http://github.com/schinery/bicycle".freeze
40
- s.licenses = ["MIT".freeze]
41
- s.rubygems_version = "2.7.7".freeze
42
- s.summary = "Why walk when you can cycle".freeze
7
+ Gem::Specification.new do |spec|
8
+ spec.name = "bicycle"
9
+ spec.version = Bicycle::VERSION
10
+ spec.authors = ["Stuart"]
11
+ spec.email = ["stuart.chinery@gmail.com"]
43
12
 
44
- if s.respond_to? :specification_version then
45
- s.specification_version = 4
13
+ spec.summary = "A convenience gem for cycling through a set of values"
14
+ spec.description = "A convenience gem for cycling through a set of values, ported from the 'cycle' " \
15
+ "functionality found in Rails. It is independent of which framework you use so " \
16
+ "will run in Sinatra, Padrino or straight up Ruby itself."
17
+ spec.homepage = "https://github.com/schinery/bicycle"
18
+ spec.license = "MIT"
46
19
 
47
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
- s.add_development_dependency(%q<bundler>.freeze, ["~> 1.16"])
49
- s.add_development_dependency(%q<jeweler>.freeze, ["~> 2.3"])
50
- s.add_development_dependency(%q<minitest>.freeze, ["~> 5.0"])
51
- s.add_development_dependency(%q<minitest-fail-fast>.freeze, ["~> 0.1"])
52
- s.add_development_dependency(%q<minitest-macos-notification>.freeze, ["~> 0"])
53
- s.add_development_dependency(%q<minitest-reporters>.freeze, ["~> 1.3"])
54
- s.add_development_dependency(%q<yard>.freeze, ["~> 0.9"])
55
- else
56
- s.add_dependency(%q<bundler>.freeze, ["~> 1.16"])
57
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
58
- s.add_dependency(%q<minitest>.freeze, ["~> 5.0"])
59
- s.add_dependency(%q<minitest-fail-fast>.freeze, ["~> 0.1"])
60
- s.add_dependency(%q<minitest-macos-notification>.freeze, ["~> 0"])
61
- s.add_dependency(%q<minitest-reporters>.freeze, ["~> 1.3"])
62
- s.add_dependency(%q<yard>.freeze, ["~> 0.9"])
63
- end
64
- else
65
- s.add_dependency(%q<bundler>.freeze, ["~> 1.16"])
66
- s.add_dependency(%q<jeweler>.freeze, ["~> 2.3"])
67
- s.add_dependency(%q<minitest>.freeze, ["~> 5.0"])
68
- s.add_dependency(%q<minitest-fail-fast>.freeze, ["~> 0.1"])
69
- s.add_dependency(%q<minitest-macos-notification>.freeze, ["~> 0"])
70
- s.add_dependency(%q<minitest-reporters>.freeze, ["~> 1.3"])
71
- s.add_dependency(%q<yard>.freeze, ["~> 0.9"])
20
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^(test|spec|features)/})
72
22
  end
73
- end
74
23
 
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.16"
29
+ spec.add_development_dependency "minitest", "~> 5.0"
30
+ spec.add_development_dependency "minitest-fail-fast", "~> 0.1"
31
+ spec.add_development_dependency "minitest-macos-notification", "~> 0"
32
+ spec.add_development_dependency "minitest-reporters", "~> 1.3"
33
+ spec.add_development_dependency "rake", "~> 12.0"
34
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Bicycle
4
+ VERSION = File.read("VERSION").split("\n").first
5
+ end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bicycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
- - Stuart Chinery
8
- - Dave Hrycyszyn
7
+ - Stuart
9
8
  autorequire:
10
- bindir: bin
9
+ bindir: exe
11
10
  cert_chain: []
12
- date: 2018-08-28 00:00:00.000000000 Z
11
+ date: 2019-01-07 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
@@ -25,20 +24,6 @@ dependencies:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
26
  version: '1.16'
28
- - !ruby/object:Gem::Dependency
29
- name: jeweler
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '2.3'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: '2.3'
42
27
  - !ruby/object:Gem::Dependency
43
28
  name: minitest
44
29
  requirement: !ruby/object:Gem::Requirement
@@ -96,33 +81,34 @@ dependencies:
96
81
  - !ruby/object:Gem::Version
97
82
  version: '1.3'
98
83
  - !ruby/object:Gem::Dependency
99
- name: yard
84
+ name: rake
100
85
  requirement: !ruby/object:Gem::Requirement
101
86
  requirements:
102
87
  - - "~>"
103
88
  - !ruby/object:Gem::Version
104
- version: '0.9'
89
+ version: '12.0'
105
90
  type: :development
106
91
  prerelease: false
107
92
  version_requirements: !ruby/object:Gem::Requirement
108
93
  requirements:
109
94
  - - "~>"
110
95
  - !ruby/object:Gem::Version
111
- version: '0.9'
96
+ version: '12.0'
112
97
  description: A convenience gem for cycling through a set of values, ported from the
113
98
  'cycle' functionality found in Rails. It is independent of which framework you use
114
99
  so will run in Sinatra, Padrino or straight up Ruby itself.
115
- email: stuart.chinery@gmail.com
100
+ email:
101
+ - stuart.chinery@gmail.com
116
102
  executables: []
117
103
  extensions: []
118
- extra_rdoc_files:
119
- - LICENSE.txt
120
- - README.md
104
+ extra_rdoc_files: []
121
105
  files:
122
106
  - ".document"
107
+ - ".gitignore"
123
108
  - ".rubocop.yml"
124
109
  - ".ruby-version"
125
110
  - ".travis.yml"
111
+ - CODE_OF_CONDUCT.md
126
112
  - Gemfile
127
113
  - Gemfile.lock
128
114
  - LICENSE.txt
@@ -132,10 +118,8 @@ files:
132
118
  - bicycle.gemspec
133
119
  - lib/bicycle.rb
134
120
  - lib/bicycle/methods.rb
135
- - test/bicycle/methods_test.rb
136
- - test/dummy_app.rb
137
- - test/helper.rb
138
- homepage: http://github.com/schinery/bicycle
121
+ - lib/bicycle/version.rb
122
+ homepage: https://github.com/schinery/bicycle
139
123
  licenses:
140
124
  - MIT
141
125
  metadata: {}
@@ -154,9 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
138
  - !ruby/object:Gem::Version
155
139
  version: '0'
156
140
  requirements: []
157
- rubyforge_project:
158
- rubygems_version: 2.7.7
141
+ rubygems_version: 3.0.1
159
142
  signing_key:
160
143
  specification_version: 4
161
- summary: Why walk when you can cycle
144
+ summary: A convenience gem for cycling through a set of values
162
145
  test_files: []
@@ -1,115 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "helper"
4
-
5
- module Bicycle
6
- class MethodsTest < Minitest::Test
7
- let(:app) { DummyApp.new }
8
- let(:values) { [] }
9
-
10
- describe Bicycle::Methods do
11
- describe "#cycle" do
12
- describe "with values" do
13
- before do
14
- (0..3).each do |idx|
15
- values[idx] = app.cycle("Foo", "Bar", "Huh?")
16
- end
17
- end
18
-
19
- it "should return a value in the cycle order" do
20
- assert_equal "Foo", values[0]
21
- assert_equal "Bar", values[1]
22
- assert_equal "Huh?", values[2]
23
- assert_equal "Foo", values[3]
24
- end
25
-
26
- describe "and with new values" do
27
- before do
28
- (0..5).each do |idx|
29
- values[idx] = app.cycle("I", "just", "want", "to", "ride", name: "bikes")
30
- end
31
- end
32
-
33
- it "should return a new value in the cycle order" do
34
- assert_equal "I", values[0]
35
- assert_equal "just", values[1]
36
- assert_equal "want", values[2]
37
- assert_equal "to", values[3]
38
- assert_equal "ride", values[4]
39
- assert_equal "I", values[0]
40
- end
41
- end
42
- end
43
-
44
- describe "with multiple instances in one loop" do
45
- let(:sub_values) { [] }
46
-
47
- before do
48
- (0..3).each do |idx|
49
- values[idx] = app.cycle("Foo", "Bar", "Huh?")
50
- other_values = []
51
-
52
- (0..5).each do |second_idx|
53
- other_values[second_idx] = app.cycle("I", "just", "want", "to", "ride", name: "bikes")
54
- end
55
-
56
- sub_values[idx] = other_values
57
- app.reset_cycle("bikes")
58
- end
59
- end
60
-
61
- it "should return a value from the first cycle order" do
62
- assert_equal "Foo", values[0]
63
- assert_equal "Bar", values[1]
64
- assert_equal "Huh?", values[2]
65
- assert_equal "Foo", values[3]
66
- end
67
-
68
- it "should return a value from the first bike cycle order" do
69
- assert_equal "I", sub_values[0][0]
70
- assert_equal "just", sub_values[0][1]
71
- assert_equal "want", sub_values[0][2]
72
- assert_equal "to", sub_values[0][3]
73
- assert_equal "ride", sub_values[0][4]
74
- assert_equal "I", sub_values[0][0]
75
- end
76
-
77
- it "should return a value from the second bike cycle order" do
78
- assert_equal "I", sub_values[1][0]
79
- assert_equal "just", sub_values[1][1]
80
- assert_equal "want", sub_values[1][2]
81
- assert_equal "to", sub_values[1][3]
82
- assert_equal "ride", sub_values[1][4]
83
- assert_equal "I", sub_values[1][0]
84
- end
85
-
86
- it "should return a value from the third bike cycle order" do
87
- assert_equal "I", sub_values[2][0]
88
- assert_equal "just", sub_values[2][1]
89
- assert_equal "want", sub_values[2][2]
90
- assert_equal "to", sub_values[2][3]
91
- assert_equal "ride", sub_values[2][4]
92
- assert_equal "I", sub_values[2][0]
93
- end
94
- end
95
- end
96
-
97
- describe "#current_cycle" do
98
- let(:current_cycle) { [] }
99
-
100
- before do
101
- (0..5).each do |idx|
102
- values[idx] = app.cycle("I", "just", "want", "to", "ride")
103
- current_cycle[idx] = app.current_cycle
104
- end
105
- end
106
-
107
- it "should match whats cycled" do
108
- (0..5).each do |idx|
109
- assert_equal values[idx], current_cycle[idx]
110
- end
111
- end
112
- end
113
- end
114
- end
115
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class DummyApp
4
- include Bicycle
5
- end
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "rubygems"
4
- require "bundler"
5
- begin
6
- Bundler.setup(:default, :development)
7
- rescue Bundler::BundlerError => e
8
- warn e.message
9
- warn "Run `bundle install` to install missing gems"
10
- exit e.status_code
11
- end
12
-
13
- $LOAD_PATH.unshift(File.dirname(__FILE__))
14
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
15
- require "bicycle"
16
- require "dummy_app"
17
-
18
- require "minitest/autorun"
19
- require "minitest/fail_fast"
20
- require "minitest/macos_notification"
21
- require "minitest/reporters"
22
- require "minitest/spec"
23
-
24
- class Minitest::Test
25
- extend Minitest::Spec::DSL
26
- end
27
-
28
- Minitest::Reporters.use!(
29
- [
30
- Minitest::Reporters::SpecReporter.new,
31
- Minitest::Reporters::MacosNotificationReporter.new(title: "Bicycle Gem")
32
- ],
33
- ENV,
34
- Minitest.backtrace_filter
35
- )