frgom 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: acfd41fcf04db5c7a8bc58db6ebcc6f0c6f34144
4
+ data.tar.gz: 2e36791e4a42fbfb785edeb456f93b0e1c476d23
5
+ SHA512:
6
+ metadata.gz: 3857f5bb4beda5133bed5d2c2c12156530c4be33f967f16c073cc5f8387c3fc191151c87b87cb6238d2f63f7938476d26f9175dc7d059596ed4bbf1b73786a06
7
+ data.tar.gz: 9cc93211daefead34b0443bfeca525cd15c5e340123809527546d75ab197f8639bb01075d51acafe9cbdba4de58a7dfec6cd135e521e7117bce844afe56761e0
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ pkg/*
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,2 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
@@ -0,0 +1,19 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-01-13 14:56:21 -0500 using RuboCop version 0.52.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ Style/Documentation:
11
+ Exclude:
12
+ - 'spec/**/*'
13
+ - 'test/**/*'
14
+ - 'lib/frgom/splines/b.rb'
15
+
16
+ # Offense count: 1
17
+ Style/DoubleNegation:
18
+ Exclude:
19
+ - 'lib/frgom/splines/b.rb'
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+
3
+ cache: bundler
4
+
5
+ rvm:
6
+ - 2.4.1
@@ -0,0 +1,3 @@
1
+ ### 0.1.0 (1/13/2018)
2
+
3
+ * Initial public release - [@dblock](https://github.com/dblock).
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'rubocop', '0.52.1'
9
+ end
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Daniel Doubrovkine and Contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,30 @@
1
+ # Flatiron School: Your First Ruby Gem of Many
2
+
3
+ [![Build Status](https://travis-ci.org/dblock/frgom.svg?branch=master)](https://travis-ci.org/dblock/frgom)
4
+
5
+ ## Usage
6
+
7
+ Install frgom, add the following to Gemfile.
8
+
9
+ ```ruby
10
+ gem 'frgom'
11
+ ```
12
+
13
+ ### Splines
14
+
15
+ #### Frgom::Splines::B
16
+
17
+ This is a B-spline that can be reticulated.
18
+
19
+ ```ruby
20
+ spline = Frgom::Splines::B.new
21
+ spline.reticulated? # false
22
+ spline.reticulate!
23
+ spline.reticulated? # true
24
+ ```
25
+
26
+ ## License
27
+
28
+ Copyright (c) 2018 Daniel Doubrovkine and Contributors
29
+
30
+ MIT License, see [LICENSE](LICENSE.md) for details.
@@ -0,0 +1,61 @@
1
+ # Releasing Frgom
2
+
3
+ There're no hard rules about when to release frgom. Release bug fixes frequently, features not so frequently and breaking API changes rarely.
4
+
5
+ ### Release
6
+
7
+ Run tests, check that all tests succeed locally.
8
+
9
+ ```
10
+ bundle install
11
+ rake
12
+ ```
13
+
14
+ Check that the last build succeeded in [Travis CI](https://travis-ci.org/dblock/frgom) for all supported platforms.
15
+
16
+ Change "Next" in [CHANGELOG.md](CHANGELOG.md) to the current date.
17
+
18
+ ```
19
+ ### 0.2.2 (7/10/2015)
20
+ ```
21
+
22
+ Remove the line with "Your contribution here.", since there will be no more contributions to this release.
23
+
24
+ Commit your changes.
25
+
26
+ ```
27
+ git add CHANGELOG.md
28
+ git commit -m "Preparing for release, 0.2.2."
29
+ git push origin master
30
+ ```
31
+
32
+ Release.
33
+
34
+ ```
35
+ $ rake release
36
+
37
+ frgom 0.2.2 built to pkg/frgom-0.2.2.gem.
38
+ Tagged v0.2.2.
39
+ Pushed git commits and tags.
40
+ Pushed frgom 0.2.2 to rubygems.org.
41
+ ```
42
+
43
+ ### Prepare for the Next Version
44
+
45
+ Add the next release to [CHANGELOG.md](CHANGELOG.md).
46
+
47
+ ```
48
+ ### 0.2.3 (Next)
49
+
50
+ * Your contribution here.
51
+ ```
52
+
53
+ Increment the third version number in [lib/google-finance/version.rb](lib/google-finance/version.rb).
54
+
55
+ Commit your changes.
56
+
57
+ ```
58
+ git add CHANGELOG.md lib/google-finance/version.rb
59
+ git commit -m "Preparing for next development iteration, 0.2.3."
60
+ git push origin master
61
+ ```
@@ -0,0 +1,12 @@
1
+ require 'rubygems'
2
+ require 'bundler/gem_tasks'
3
+
4
+ Bundler.setup(:default, :development)
5
+
6
+ require 'rspec/core/rake_task'
7
+ RSpec::Core::RakeTask.new(:spec)
8
+
9
+ require 'rubocop/rake_task'
10
+ RuboCop::RakeTask.new(:rubocop)
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,18 @@
1
+ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
+
3
+ require 'frgom/version'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'frgom'
7
+ s.version = Frgom::VERSION
8
+ s.authors = ['Daniel Doubrovkine']
9
+ s.email = 'dblock@dblock.org'
10
+ s.platform = Gem::Platform::RUBY
11
+ s.required_rubygems_version = '>= 1.3.6'
12
+ s.files = `git ls-files`.split("\n")
13
+ s.test_files = `git ls-files -- spec/*`.split("\n")
14
+ s.require_paths = ['lib']
15
+ s.homepage = 'http://github.com/dblock/frgom'
16
+ s.licenses = ['MIT']
17
+ s.summary = 'First ruby gem of many.'
18
+ end
@@ -0,0 +1,2 @@
1
+ require 'frgom/version'
2
+ require 'frgom/splines'
@@ -0,0 +1 @@
1
+ require_relative 'splines/b'
@@ -0,0 +1,13 @@
1
+ module Frgom
2
+ module Splines
3
+ class B
4
+ def reticulated?
5
+ !!@reticulated
6
+ end
7
+
8
+ def reticulate!
9
+ @reticulated = true
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module Frgom
2
+ VERSION = '0.1.0'.freeze
3
+ end
@@ -0,0 +1,15 @@
1
+ require 'spec_helper'
2
+
3
+ describe Frgom::Splines::B do
4
+ it 'is not reticulated by default' do
5
+ expect(subject.reticulated?).to be false
6
+ end
7
+ context 'reticulated' do
8
+ before do
9
+ expect(subject.reticulate!).to be true
10
+ end
11
+ it 'is true' do
12
+ expect(subject.reticulated?).to be true
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Frgom do
4
+ it 'has a version' do
5
+ expect(Frgom::VERSION).to_not be nil
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+
3
+ require 'rubygems'
4
+ require 'rspec'
5
+ require 'frgom'
metadata ADDED
@@ -0,0 +1,65 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: frgom
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Daniel Doubrovkine
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-01-13 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email: dblock@dblock.org
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - ".gitignore"
20
+ - ".rspec"
21
+ - ".rubocop.yml"
22
+ - ".rubocop_todo.yml"
23
+ - ".travis.yml"
24
+ - CHANGELOG.md
25
+ - Gemfile
26
+ - LICENSE.md
27
+ - README.md
28
+ - RELEASING.md
29
+ - Rakefile
30
+ - frgom.gemspec
31
+ - lib/frgom.rb
32
+ - lib/frgom/splines.rb
33
+ - lib/frgom/splines/b.rb
34
+ - lib/frgom/version.rb
35
+ - spec/frgom/splines/b_spec.rb
36
+ - spec/frgom/version_spec.rb
37
+ - spec/spec_helper.rb
38
+ homepage: http://github.com/dblock/frgom
39
+ licenses:
40
+ - MIT
41
+ metadata: {}
42
+ post_install_message:
43
+ rdoc_options: []
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 1.3.6
56
+ requirements: []
57
+ rubyforge_project:
58
+ rubygems_version: 2.6.12
59
+ signing_key:
60
+ specification_version: 4
61
+ summary: First ruby gem of many.
62
+ test_files:
63
+ - spec/frgom/splines/b_spec.rb
64
+ - spec/frgom/version_spec.rb
65
+ - spec/spec_helper.rb