spicycode-micronaut-rails 0.0.6.2 → 0.1.7.0

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.
data/README CHANGED
@@ -9,8 +9,10 @@ RSpec lite. Definitely pre alpha at the moment.
9
9
 
10
10
  == REQUIREMENTS:
11
11
 
12
- + Ruby 1.8
13
- + Micronaut (via spicycode-micronaut on GitHub) -- see Micronaut::Rails::Version::MICRONAUT_REQUIRED_VERSION for the required version of Micronaut for this version of micronaut-rails
12
+ * Ruby 1.8
13
+ * ActionPack
14
+ * Micronaut (via spicycode-micronaut on GitHub) -- version numbers are kept in sync, excluding the fourth version part. So
15
+ micronaut-rails 0.1.7.5 should be compatible with micronaut 0.1.7, but micronaut-rails 0.1.8.0 would require micronaut >= 0.1.8.
14
16
 
15
17
  == CREDITS:
16
18
 
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ spec = Gem::Specification.new do |s|
25
25
  s.require_path = 'lib'
26
26
  s.autorequire = GEM
27
27
  s.add_dependency "actionpack", '>= 2.2.2'
28
- s.add_dependency "spicycode-micronaut", Micronaut::Rails::Version::MICRONAUT_REQUIRED_VERSION
28
+ s.add_dependency "spicycode-micronaut", Micronaut::Rails::Version::MICRONAUT_VERSION_STRING
29
29
  s.files = %w(LICENSE README RSPEC-LICENSE Rakefile) + Dir.glob("{lib,examples}/**/*")
30
30
  end
31
31
 
@@ -2,7 +2,14 @@ lib_path = File.expand_path(File.dirname(__FILE__) + "/../lib")
2
2
  $LOAD_PATH.unshift lib_path unless $LOAD_PATH.include?(lib_path)
3
3
 
4
4
  require 'micronaut/rails/version'
5
- gem "spicycode-micronaut", Micronaut::Rails::Version::MICRONAUT_REQUIRED_VERSION
5
+ begin
6
+ gem "spicycode-micronaut", Micronaut::Rails::Version::MICRONAUT_VERSION_STRING
7
+ rescue LoadError => e
8
+ puts "\nERROR - This version of micronaut-rails requires micronaut #{Micronaut::Rails::Version::MICRONAUT_VERSION_STRING} - please install with: \n"
9
+ puts "gem install spicycode-micronaut --version #{Micronaut::Rails::Version::MICRONAUT_VERSION_STRING}\n"
10
+ puts
11
+ exit(1)
12
+ end
6
13
  require 'micronaut'
7
14
  require 'micronaut-rails'
8
15
  require 'rubygems'
@@ -2,13 +2,14 @@ module Micronaut
2
2
  module Rails
3
3
  module Version
4
4
  MAJOR = 0
5
- MINOR = 0
6
- TINY = 6
7
- MINISCULE = 2
5
+ MINOR = 1
6
+ TINY = 7
7
+ MINISCULE = 0
8
8
 
9
9
  STRING = [MAJOR, MINOR, TINY, MINISCULE].join('.')
10
-
11
- MICRONAUT_REQUIRED_VERSION = ">= 0.1.6"
10
+
11
+ MICRONAUT_VERSION = [MAJOR, MINOR, TINY].join('.')
12
+ MICRONAUT_VERSION_STRING = ">= #{MICRONAUT_VERSION}"
12
13
  end
13
14
  end
14
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spicycode-micronaut-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.2
4
+ version: 0.1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Humphries
@@ -28,7 +28,7 @@ dependencies:
28
28
  requirements:
29
29
  - - ">="
30
30
  - !ruby/object:Gem::Version
31
- version: 0.1.6
31
+ version: 0.1.7
32
32
  version:
33
33
  description: An excellent replacement for the wheel...
34
34
  email: chad@spicycode.com