reference_number 0.0.1 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 80b40ce1eb26b9ccc778aee7e527d4592fe7e923220461f2d26f146d654e4265
4
+ data.tar.gz: 1641b30ff65e44fd44e0541d223b08d84d1fe521ebecfa61b78e019663e934ea
5
+ SHA512:
6
+ metadata.gz: 8e07d3b497fb7b89abbfa706962fca0b0787977b311f405a6c26a3a7766aabecf24e454911af3d3bca8eef47d208c4d6be92e5be23a98ede2c5b6c4e601e0acb
7
+ data.tar.gz: ff1b9377c88f03d8b5f98ba8b423c15feefc366bbaf114a2c5502045ccad43c9e7b09bdc10fb7dfafabc6d8134803b0a46d2c426358a23220bdc3aefb315cef3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### ReferenceNumber 1.0.1 (2022-11-08)
2
+
3
+ - No changes in the executed code, only gem structure modernization.
4
+
5
+ ### ReferenceNumber 1.0.0 (2022-11-07)
6
+
7
+ - Fixes "::Fixnum is deprecated" deprecation warnings.
8
+
1
9
  ### ReferenceNumber 0.0.1 (2012-09-28)
2
10
 
3
- * First version created.
11
+ - First version created.
data/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # ReferenceNumber
2
2
 
3
+ Ruby library for calculating reference number (viitenumero, referensnummer).
4
+
3
5
  Original idea and code was gotten from Christian:
4
6
  http://snippets.aktagon.com/snippets/51-How-to-Calculate-a-reference-number-with-Ruby
5
7
 
8
+ [![Build Status](https://secure.travis-ci.org/akonan/reference_number.png)](http://travis-ci.org/akonan/reference_number)
9
+
6
10
  ## Usage
7
11
 
8
12
  Add this to your gem file:
@@ -17,7 +21,7 @@ Example usage:
17
21
  The above example prints out “11112”.
18
22
 
19
23
  ReferenceNumber.new(1111, :zero_padding => true).to_s
20
-
24
+
21
25
  The above example prints out zero padded reference number "00000000000000011112".
22
26
 
23
27
  This example shows how to generate a series of reference number:
@@ -28,4 +32,15 @@ This example shows how to generate a series of reference number:
28
32
 
29
33
  ## License
30
34
 
31
- ReferenceNumber is licensed under the MIT License, for more details see the LICENSE file.
35
+ ReferenceNumber is licensed under the MIT License, for more details see the LICENSE file.
36
+
37
+ ## Releasing
38
+
39
+ # bump the version with one of these
40
+ gem install gem-release
41
+ gem bump --version minor # bumps to the next minor version
42
+ gem bump --version major # bumps to the next major version
43
+ gem bump --version 1.1.1 # bumps to the specified version
44
+
45
+ # release it to Rubygems.org
46
+ bundle exec rake release
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "reference_number"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -1,3 +1,3 @@
1
1
  class ReferenceNumber
2
- VERSION = "0.0.1"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -8,7 +8,7 @@ class ReferenceNumber
8
8
  @zero_padding = opts[:zero_padding]
9
9
 
10
10
  @input = input
11
- if(@input.is_a? Fixnum)
11
+ if(@input.is_a? Integer)
12
12
  @input = @input.to_s
13
13
  end
14
14
 
@@ -45,4 +45,4 @@ class ReferenceNumber
45
45
  end
46
46
  end
47
47
 
48
- end
48
+ end
metadata CHANGED
@@ -1,62 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reference_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Antti Akonniemi
9
- autorequire:
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-27 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 2.11.0
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 2.11.0
62
55
  description: No need to copy paste your old reference number codes anymore, just use
@@ -67,33 +60,36 @@ executables: []
67
60
  extensions: []
68
61
  extra_rdoc_files: []
69
62
  files:
70
- - lib/reference_number/version.rb
71
- - lib/reference_number.rb
72
- - LICENSE
73
63
  - CHANGELOG.md
64
+ - LICENSE
74
65
  - README.md
66
+ - bin/console
67
+ - lib/reference_number.rb
68
+ - lib/reference_number/version.rb
75
69
  homepage: http://github.com/akonan/reference_number
76
- licenses: []
77
- post_install_message:
70
+ licenses:
71
+ - MIT
72
+ metadata:
73
+ homepage_uri: http://github.com/akonan/reference_number
74
+ source_code_uri: https://github.com/akonan/reference_number
75
+ changelog_uri: https://github.com/akonan/reference_number/blob/master/CHANGELOG.md
76
+ post_install_message:
78
77
  rdoc_options: []
79
78
  require_paths:
80
79
  - lib
81
80
  required_ruby_version: !ruby/object:Gem::Requirement
82
- none: false
83
81
  requirements:
84
- - - ! '>='
82
+ - - ">="
85
83
  - !ruby/object:Gem::Version
86
84
  version: '0'
87
85
  required_rubygems_version: !ruby/object:Gem::Requirement
88
- none: false
89
86
  requirements:
90
- - - ! '>='
87
+ - - ">="
91
88
  - !ruby/object:Gem::Version
92
89
  version: 1.3.6
93
90
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 1.8.23
96
- signing_key:
97
- specification_version: 3
91
+ rubygems_version: 3.1.2
92
+ signing_key:
93
+ specification_version: 4
98
94
  summary: A gem for calculating reference number (viitenumere, referensnummer)
99
95
  test_files: []