fume 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,22 +1,7 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ require File.expand_path("../depends.rb", __FILE__)
2
+ GemLoader.require(:rakefile)
3
3
 
4
- begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "fume"
8
- gem.summary = "a simple rails scaffold."
9
- gem.email = "Sunteya@gmail.com"
10
- gem.homepage = "http://github.com/sunteya/fume"
11
- gem.authors = ["Sunteya"]
12
- end
13
-
14
- Jeweler::GemcutterTasks.new
15
- rescue LoadError
16
- puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
17
- end
18
4
 
19
- require 'spec/rake/spectask'
20
5
  Spec::Rake::SpecTask.new(:spec) do |spec|
21
6
  spec.libs << 'lib' << 'spec'
22
7
  spec.spec_opts = ['--options', "spec/spec.opts"]
@@ -29,5 +14,17 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
29
14
  spec.rcov = true
30
15
  end
31
16
 
17
+
18
+ Jeweler::Tasks.new do |spec|
19
+ spec.name = "fume"
20
+ spec.summary = "a simple rails scaffold."
21
+ spec.email = "Sunteya@gmail.com"
22
+ spec.homepage = "http://github.com/sunteya/fume"
23
+ spec.authors = ["Sunteya"]
24
+ GemLoader.gemspec.integrate(spec)
25
+ end
26
+ Jeweler::GemcutterTasks.new
27
+
28
+
32
29
  task :spec => :check_dependencies
33
30
  task :default => :spec
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- :build:
3
- :minor: 3
4
- :patch: 6
2
+ :patch: 1
5
3
  :major: 0
4
+ :minor: 4
5
+ :build:
data/depends.rb ADDED
@@ -0,0 +1,27 @@
1
+ require "rubygems"
2
+ gem "gem_loader", ">= 0.1.3"
3
+ require "gem_loader"
4
+
5
+
6
+ GemLoader.setup do
7
+
8
+ scope :runtime do
9
+ gem "actionpack", "~> 2.3.5", :require => ["action_pack", "action_view", "action_controller"]
10
+ end
11
+
12
+ scope :development => :optional do
13
+ gem "authlogic", ">= 2.1.3"
14
+ gem "searchlogic", ">= 2.4.12"
15
+ gem "formtastic", ">= 0.9.7"
16
+ end
17
+
18
+ scope :test => [:runtime, :development]
19
+
20
+ scope :rakefile do
21
+ gem "rake", ">= 0.8.7"
22
+ gem "jeweler", ">= 1.4.0"
23
+ gem "rspec", ">= 1.3.0", :require => nil
24
+
25
+ require "spec/rake/spectask"
26
+ end
27
+ end
data/fume.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fume}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Sunteya"]
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  "README",
20
20
  "Rakefile",
21
21
  "VERSION.yml",
22
+ "depends.rb",
22
23
  "fume.gemspec",
23
24
  "generators/fume/capify/capify_gen.rb",
24
25
  "generators/fume/capify/templates/Capfile",
data/lib/fume.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require File.expand_path("../../depends.rb", __FILE__)
2
+ GemLoader.require(:runtime)
3
+
1
4
  require 'fume/authlogic'
2
5
  require 'fume/searchlogic'
3
6
  require 'fume/simple_theme'
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,5 @@
1
- # require 'rubygems'
2
- # require 'spec'
1
+ require File.expand_path("../../depends.rb", __FILE__)
2
+ GemLoader.require(:runtime, :development)
3
3
 
4
4
  require File.join(File.dirname(__FILE__), '..', 'lib', 'fume')
5
5
  require "rails_stub"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sunteya
@@ -100,6 +100,7 @@ files:
100
100
  - README
101
101
  - Rakefile
102
102
  - VERSION.yml
103
+ - depends.rb
103
104
  - fume.gemspec
104
105
  - generators/fume/capify/capify_gen.rb
105
106
  - generators/fume/capify/templates/Capfile