versioner 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/Guardfile +5 -0
- data/LICENSE.txt +22 -0
- data/README.md +73 -0
- data/Rakefile +7 -0
- data/lib/generators/versioner/install/install_generator.rb +17 -0
- data/lib/generators/versioner/install/templates/config/initializers/versioner.rb.erb +3 -0
- data/lib/generators/versioner/install/templates/config/versioner.yml.erb +4 -0
- data/lib/railtie.rb +7 -0
- data/lib/tasks/versioner.rake +1 -0
- data/lib/versioner/tasks.rb +26 -0
- data/lib/versioner/versioner_yaml.rb +80 -0
- data/lib/versioner.rb +50 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/config/application.rb +15 -0
- data/spec/dummy/config/boot.rb +6 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/test.rb +10 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/fixtures/versioner.yml +4 -0
- data/spec/generators/versioner/install/install_generator_spec.rb +30 -0
- data/spec/lib/versioner_spec.rb +41 -0
- data/spec/spec_helper.rb +20 -0
- data/versioner.gemspec +28 -0
- metadata +218 -0
data/.gitignore
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
spec/dummy/log
|
19
|
+
spec/dummy/config/versioner.yml
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour
|
data/Gemfile
ADDED
data/Guardfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 ChaiONE
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# versioner
|
2
|
+
|
3
|
+
This gem allows you to easily add, update, and retrieve a version number for your Rails application.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'versioner'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install versioner
|
18
|
+
|
19
|
+
Then run the installer:
|
20
|
+
|
21
|
+
$ rails generate versioner:install
|
22
|
+
|
23
|
+
This adds these files:
|
24
|
+
|
25
|
+
* **[RAILS_ROOT]/config/versioner.yml** - This is where the version number is stored.
|
26
|
+
* **[RAILS_ROOT]/config/initializers/versioner.rb** - This is where you can configure options. The only option available right now is **storage_path**, which allows you to change the location of versioner.yml.
|
27
|
+
|
28
|
+
## Usage
|
29
|
+
|
30
|
+
Version numbers follow the format *Major.Minor.Patch*.
|
31
|
+
|
32
|
+
Force a new version number like this:
|
33
|
+
|
34
|
+
$ rake versioner:force[1,0,3]
|
35
|
+
|
36
|
+
Then you can update it:
|
37
|
+
|
38
|
+
$ rake versioner:increment_major
|
39
|
+
$ rake versioner:increment_minor
|
40
|
+
$ rake versioner:increment_patch
|
41
|
+
|
42
|
+
And get it:
|
43
|
+
|
44
|
+
$ rake versioner:version
|
45
|
+
|
46
|
+
Within your Rails app, you can use the following to get your app's version as a string:
|
47
|
+
|
48
|
+
Versioner.version
|
49
|
+
|
50
|
+
## Details
|
51
|
+
|
52
|
+
Right now, the version is stored in YAML format, by default under config/versioner.yml. This location can be changed in config/initializers/versioner.rb.
|
53
|
+
|
54
|
+
More storage back-end options are coming.
|
55
|
+
|
56
|
+
## Roadmap
|
57
|
+
|
58
|
+
* Fully support [Semantic Versioning](http://semver.org)
|
59
|
+
* More storage back-ends
|
60
|
+
* Extract the core into a new gem, versioner
|
61
|
+
* More gems for other frameworks (e.g., Sinatra)
|
62
|
+
|
63
|
+
## Contributing
|
64
|
+
|
65
|
+
1. Fork it
|
66
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
67
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
68
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
69
|
+
5. Create new Pull Request
|
70
|
+
|
71
|
+
## License
|
72
|
+
|
73
|
+
MIT
|
data/Rakefile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'rbconfig'
|
2
|
+
|
3
|
+
module Versioner
|
4
|
+
class InstallGenerator < ::Rails::Generators::Base
|
5
|
+
source_root File.expand_path("../templates", __FILE__)
|
6
|
+
|
7
|
+
DEFAULT_SHEBANG = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
8
|
+
|
9
|
+
def create_version_file
|
10
|
+
template 'config/versioner.yml.erb', 'config/versioner.yml'
|
11
|
+
end
|
12
|
+
|
13
|
+
def create_initializer
|
14
|
+
template 'config/initializers/versioner.rb.erb', 'config/initializers/versioner.rb'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/railtie.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'versioner', 'tasks'))
|
@@ -0,0 +1,26 @@
|
|
1
|
+
namespace :versioner do
|
2
|
+
desc "Get the app's version number"
|
3
|
+
task :version => :environment do
|
4
|
+
puts Versioner.version
|
5
|
+
end
|
6
|
+
|
7
|
+
desc "Increment the major version number by 1"
|
8
|
+
task :increment_major => :environment do
|
9
|
+
puts Versioner.increment_major
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Increment the minor version number by 1"
|
13
|
+
task :increment_minor => :environment do
|
14
|
+
puts Versioner.increment_minor
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "Increment the patch version number by 1"
|
18
|
+
task :increment_patch => :environment do
|
19
|
+
puts Versioner.increment_patch
|
20
|
+
end
|
21
|
+
|
22
|
+
desc "Force a new version number (required: major, minor, patch)"
|
23
|
+
task :force, [:major, :minor, :patch] => :environment do |t, args|
|
24
|
+
puts Versioner.force args.major.to_i, args.minor.to_i, args.patch.to_i
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
require 'yaml'
|
2
|
+
|
3
|
+
module Versioner
|
4
|
+
class YamlBackend
|
5
|
+
def initialize(path)
|
6
|
+
self.path = path
|
7
|
+
read
|
8
|
+
end
|
9
|
+
|
10
|
+
def version
|
11
|
+
"#{major}.#{minor}.#{patch}"
|
12
|
+
end
|
13
|
+
|
14
|
+
def major
|
15
|
+
data[:major]
|
16
|
+
end
|
17
|
+
|
18
|
+
def major=(num)
|
19
|
+
data[:major] = num
|
20
|
+
write
|
21
|
+
end
|
22
|
+
|
23
|
+
def minor
|
24
|
+
data[:minor]
|
25
|
+
end
|
26
|
+
|
27
|
+
def minor=(num)
|
28
|
+
data[:minor] = num
|
29
|
+
write
|
30
|
+
end
|
31
|
+
|
32
|
+
def patch
|
33
|
+
data[:patch]
|
34
|
+
end
|
35
|
+
|
36
|
+
def patch=(num)
|
37
|
+
data[:patch] = num
|
38
|
+
write
|
39
|
+
end
|
40
|
+
|
41
|
+
def force(major, minor, patch)
|
42
|
+
self.major = major
|
43
|
+
self.minor = minor
|
44
|
+
self.patch = patch
|
45
|
+
version
|
46
|
+
end
|
47
|
+
|
48
|
+
def increment_major
|
49
|
+
self.major = major + 1
|
50
|
+
version
|
51
|
+
end
|
52
|
+
|
53
|
+
def increment_minor
|
54
|
+
self.minor = minor + 1
|
55
|
+
version
|
56
|
+
end
|
57
|
+
|
58
|
+
def increment_patch
|
59
|
+
self.patch = patch + 1
|
60
|
+
version
|
61
|
+
end
|
62
|
+
|
63
|
+
private
|
64
|
+
|
65
|
+
attr_accessor :data, :path
|
66
|
+
|
67
|
+
def read
|
68
|
+
File.open(path, 'r') do |file|
|
69
|
+
data = file.read
|
70
|
+
self.data = YAML.load(data)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def write
|
75
|
+
File.open(path, 'w') do |file|
|
76
|
+
YAML.dump(data, file)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
data/lib/versioner.rb
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
require 'railtie'
|
2
|
+
require 'versioner/versioner_yaml'
|
3
|
+
|
4
|
+
module Versioner
|
5
|
+
class << self
|
6
|
+
def api
|
7
|
+
@api = YamlBackend.new(storage_path)
|
8
|
+
end
|
9
|
+
|
10
|
+
def version
|
11
|
+
api.version
|
12
|
+
end
|
13
|
+
|
14
|
+
def force(major, minor, patch)
|
15
|
+
api.force major, minor, patch
|
16
|
+
end
|
17
|
+
|
18
|
+
def increment_major
|
19
|
+
api.increment_major
|
20
|
+
end
|
21
|
+
|
22
|
+
def increment_minor
|
23
|
+
api.increment_minor
|
24
|
+
end
|
25
|
+
|
26
|
+
def increment_patch
|
27
|
+
api.increment_patch
|
28
|
+
end
|
29
|
+
|
30
|
+
def config
|
31
|
+
@config ||= Configuration.new
|
32
|
+
end
|
33
|
+
|
34
|
+
def configure
|
35
|
+
yield config
|
36
|
+
end
|
37
|
+
|
38
|
+
delegate :storage_path, :to => :config
|
39
|
+
end
|
40
|
+
|
41
|
+
class Configuration
|
42
|
+
def storage_path
|
43
|
+
@storage_path ||= Rails.root.join("config", "versioner.yml")
|
44
|
+
end
|
45
|
+
|
46
|
+
def storage_path=(path)
|
47
|
+
@storage_path = path
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require 'action_controller/railtie'
|
4
|
+
require 'action_view/railtie'
|
5
|
+
require 'sprockets/railtie'
|
6
|
+
|
7
|
+
if defined?(Bundler)
|
8
|
+
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
9
|
+
end
|
10
|
+
|
11
|
+
module Dummy
|
12
|
+
class Application < Rails::Application
|
13
|
+
config.encoding = "utf-8"
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# Generators are not automatically loaded by Rails
|
4
|
+
require 'generators/versioner/install/install_generator'
|
5
|
+
|
6
|
+
describe Versioner::InstallGenerator do
|
7
|
+
# Tell the generator where to put its output
|
8
|
+
destination File.expand_path("../../../../../tmp", __FILE__)
|
9
|
+
|
10
|
+
before { prepare_destination }
|
11
|
+
|
12
|
+
describe 'no arguments' do
|
13
|
+
before { run_generator }
|
14
|
+
|
15
|
+
describe 'config/versioner.yml' do
|
16
|
+
subject { file('config/versioner.yml') }
|
17
|
+
it { should exist }
|
18
|
+
it { should contain ":major: 0" }
|
19
|
+
it { should contain ":minor: 0" }
|
20
|
+
it { should contain ":patch: 0" }
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'config/initializers/versioner.rb' do
|
24
|
+
subject { file('config/initializers/versioner.rb') }
|
25
|
+
it { should exist }
|
26
|
+
it { should contain "Versioner.configure do |config|" }
|
27
|
+
it { should contain "storage_path"}
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Versioner do
|
4
|
+
describe "getting a version if none is set" do
|
5
|
+
subject { Versioner.version }
|
6
|
+
it { should == "0.0.0" }
|
7
|
+
end
|
8
|
+
|
9
|
+
describe "forcing the version" do
|
10
|
+
before { Versioner.force 1, 0, 0 }
|
11
|
+
subject { Versioner.version }
|
12
|
+
it { should == "1.0.0" }
|
13
|
+
end
|
14
|
+
|
15
|
+
describe "incrementing the major version" do
|
16
|
+
before do
|
17
|
+
Versioner.force 1, 0, 1
|
18
|
+
Versioner.increment_major
|
19
|
+
end
|
20
|
+
subject { Versioner.version }
|
21
|
+
it { should == "2.0.1" }
|
22
|
+
end
|
23
|
+
|
24
|
+
describe "incrementing the minor version" do
|
25
|
+
before do
|
26
|
+
Versioner.force 1, 0, 1
|
27
|
+
Versioner.increment_minor
|
28
|
+
end
|
29
|
+
subject { Versioner.version }
|
30
|
+
it { should == "1.1.1" }
|
31
|
+
end
|
32
|
+
|
33
|
+
describe "incrementing the patch version" do
|
34
|
+
before do
|
35
|
+
Versioner.force 2, 3, 1
|
36
|
+
Versioner.increment_patch
|
37
|
+
end
|
38
|
+
subject { Versioner.version }
|
39
|
+
it { should == "2.3.2" }
|
40
|
+
end
|
41
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# rails
|
2
|
+
ENV["RAILS_ENV"] ||= "test"
|
3
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
4
|
+
|
5
|
+
# versioner
|
6
|
+
require "fileutils"
|
7
|
+
require "versioner"
|
8
|
+
Versioner.configure do |config|
|
9
|
+
config.storage_path = Rails.root.join "config", "versioner.yml"
|
10
|
+
end
|
11
|
+
|
12
|
+
# copy over new versioner config
|
13
|
+
fixture_path = File.expand_path("../fixtures/versioner.yml", __FILE__)
|
14
|
+
storage_path = File.expand_path("../dummy/config/versioner.yml", __FILE__)
|
15
|
+
FileUtils.cp fixture_path, storage_path
|
16
|
+
|
17
|
+
require "rspec/rails"
|
18
|
+
require "rspec/autorun"
|
19
|
+
|
20
|
+
require "ammeter/init"
|
data/versioner.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gem.name = "versioner"
|
7
|
+
gem.version = "0.1.0"
|
8
|
+
gem.authors = ["ChaiONE"]
|
9
|
+
gem.email = ["joshua.rieken@chaione.com"]
|
10
|
+
gem.summary = %q{Super simple versioning for Rails apps}
|
11
|
+
gem.description = %q{This gem makes it easy to add and update a version number for your Rails app via rake tasks.
|
12
|
+
The version is stored in a YAML file within your app.}
|
13
|
+
gem.homepage = "https://github.com/chaione/versioner"
|
14
|
+
gem.files = `git ls-files`.split($/)
|
15
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
|
+
gem.require_paths = ["lib"]
|
18
|
+
|
19
|
+
gem.add_dependency "railties", "~> 3.0"
|
20
|
+
gem.add_dependency "actionpack", "~> 3.0"
|
21
|
+
|
22
|
+
gem.add_development_dependency "rspec-rails", "~> 2.11.4"
|
23
|
+
gem.add_development_dependency "guard", "~> 1.1.1"
|
24
|
+
gem.add_development_dependency "guard-rspec", "~> 1.1.0"
|
25
|
+
gem.add_development_dependency "growl", "~> 1.0.3"
|
26
|
+
gem.add_development_dependency "ammeter", "~> 0.2.8"
|
27
|
+
gem.add_development_dependency "tzinfo", "~> 0.3.33"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,218 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: versioner
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- ChaiONE
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: railties
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: actionpack
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '3.0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 2.11.4
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.11.4
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: guard
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 1.1.1
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.1.1
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: guard-rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 1.1.0
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.1.0
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: growl
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.0.3
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.0.3
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: ammeter
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.2.8
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.2.8
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: tzinfo
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.3.33
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.3.33
|
142
|
+
description: ! 'This gem makes it easy to add and update a version number for your
|
143
|
+
Rails app via rake tasks.
|
144
|
+
|
145
|
+
The version is stored in a YAML file within your app.'
|
146
|
+
email:
|
147
|
+
- joshua.rieken@chaione.com
|
148
|
+
executables: []
|
149
|
+
extensions: []
|
150
|
+
extra_rdoc_files: []
|
151
|
+
files:
|
152
|
+
- .gitignore
|
153
|
+
- .rspec
|
154
|
+
- Gemfile
|
155
|
+
- Guardfile
|
156
|
+
- LICENSE.txt
|
157
|
+
- README.md
|
158
|
+
- Rakefile
|
159
|
+
- lib/generators/versioner/install/install_generator.rb
|
160
|
+
- lib/generators/versioner/install/templates/config/initializers/versioner.rb.erb
|
161
|
+
- lib/generators/versioner/install/templates/config/versioner.yml.erb
|
162
|
+
- lib/railtie.rb
|
163
|
+
- lib/tasks/versioner.rake
|
164
|
+
- lib/versioner.rb
|
165
|
+
- lib/versioner/tasks.rb
|
166
|
+
- lib/versioner/versioner_yaml.rb
|
167
|
+
- spec/dummy/app/controllers/application_controller.rb
|
168
|
+
- spec/dummy/config.ru
|
169
|
+
- spec/dummy/config/application.rb
|
170
|
+
- spec/dummy/config/boot.rb
|
171
|
+
- spec/dummy/config/environment.rb
|
172
|
+
- spec/dummy/config/environments/test.rb
|
173
|
+
- spec/fixtures/versioner.yml
|
174
|
+
- spec/generators/versioner/install/install_generator_spec.rb
|
175
|
+
- spec/lib/versioner_spec.rb
|
176
|
+
- spec/spec_helper.rb
|
177
|
+
- versioner.gemspec
|
178
|
+
homepage: https://github.com/chaione/versioner
|
179
|
+
licenses: []
|
180
|
+
post_install_message:
|
181
|
+
rdoc_options: []
|
182
|
+
require_paths:
|
183
|
+
- lib
|
184
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
segments:
|
191
|
+
- 0
|
192
|
+
hash: -4121593038799895324
|
193
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
|
+
none: false
|
195
|
+
requirements:
|
196
|
+
- - ! '>='
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '0'
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
hash: -4121593038799895324
|
202
|
+
requirements: []
|
203
|
+
rubyforge_project:
|
204
|
+
rubygems_version: 1.8.23
|
205
|
+
signing_key:
|
206
|
+
specification_version: 3
|
207
|
+
summary: Super simple versioning for Rails apps
|
208
|
+
test_files:
|
209
|
+
- spec/dummy/app/controllers/application_controller.rb
|
210
|
+
- spec/dummy/config.ru
|
211
|
+
- spec/dummy/config/application.rb
|
212
|
+
- spec/dummy/config/boot.rb
|
213
|
+
- spec/dummy/config/environment.rb
|
214
|
+
- spec/dummy/config/environments/test.rb
|
215
|
+
- spec/fixtures/versioner.yml
|
216
|
+
- spec/generators/versioner/install/install_generator_spec.rb
|
217
|
+
- spec/lib/versioner_spec.rb
|
218
|
+
- spec/spec_helper.rb
|