merb_has_flash 0.9.6 → 1.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
@@ -7,9 +7,14 @@ Most of the code is taken directly from Rails, which is
7
7
  Copyright (c) 2004-2006 David Heinemeier Hansson.
8
8
  This plugin is released under the same terms as Rails itself.
9
9
 
10
- Hacked together by Michael Ivey <ivey@gweezlebur.com> ... send bug
10
+ Hacked together by Michael Ivey, with code
11
+ reorganization and specs done by Jeremy Nicoll <jnicoll@gnexp.com>
12
+ Jeremy is now the maintainer for this project, so please send bug
11
13
  reports and patches to him.
12
14
 
13
15
  Contributors:
14
16
  Tim Kofol
15
17
  Shay Arnett
18
+ Martin Kihlgren
19
+ Andrei Bocan
20
+
data/Rakefile CHANGED
@@ -1,16 +1,16 @@
1
1
  require 'rubygems'
2
2
  require 'rake/gempackagetask'
3
-
3
+
4
4
  spec = eval(File.read('merb_has_flash.gemspec'))
5
+ Rake::GemPackageTask.new(spec) { |pkg| pkg.gem_spec = spec }
5
6
 
6
- Rake::GemPackageTask.new(spec) do |pkg|
7
- pkg.gem_spec = spec
8
- end
7
+ # Checks to see if Windows platform or if "SUDOLESS" environment variable is set
8
+ sudo = ((RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil) ? '' : ('sudo' unless ENV['SUDOLESS'])
9
9
 
10
10
  task :install => [:package] do
11
- sh %{sudo gem install pkg/#{NAME}-#{VERSION}}
11
+ sh %{#{sudo} gem install pkg/#{spec.name}-#{spec.version}}
12
12
  end
13
13
 
14
14
  task :release => :package do
15
- sh %{rubyforge add_release merb-plugins merb_has_flash #{VERSION} pkg/#{NAME}-#{VERSION}.gem}
15
+ sh %{rubyforge add_release merb-plugins #{spec.name} #{spec.version} pkg/#{spec.name}-#{spec.version}.gem}
16
16
  end
@@ -42,12 +42,10 @@ module MerbHasFlash
42
42
  keep # keep with no args automatically clears out unused keys and keeps all used ones.
43
43
  end
44
44
 
45
-
46
- def method_missing(method_name, *args) #:nodoc:
47
- @attrs.send(method_name, *args)
45
+ def method_missing(method_name, *args, &block) #:nodoc:
46
+ @attrs.send(method_name, *args, &block)
48
47
  end
49
48
 
50
-
51
49
  # Sets a flash that will not be available to the next action, only to the current.
52
50
  #
53
51
  # flash.now[:message] = "Hello current action"
@@ -85,7 +83,6 @@ module MerbHasFlash
85
83
  discard
86
84
  end
87
85
 
88
-
89
86
  end
90
87
 
91
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_has_flash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: "1.0"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael D. Ivey
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-09-10 00:00:00 -05:00
13
+ date: 2008-12-05 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -24,7 +24,7 @@ dependencies:
24
24
  version: 0.9.0
25
25
  version:
26
26
  description: Rails' 'flash' session notification system ported to Merb
27
- email: ivey@gweezlebur.com
27
+ email: jnicoll@gnexp.com
28
28
  executables: []
29
29
 
30
30
  extensions: []
@@ -44,7 +44,7 @@ files:
44
44
  - spec/merb_has_flash/flash_hash_spec.rb
45
45
  - spec/spec_helper.rb
46
46
  has_rdoc: false
47
- homepage: http://github.com/ivey/merb_has_flash
47
+ homepage: http://github.com/eltiare/merb_has_flash
48
48
  post_install_message:
49
49
  rdoc_options: []
50
50
 
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements: []
66
66
 
67
67
  rubyforge_project:
68
- rubygems_version: 1.2.0
68
+ rubygems_version: 1.3.1
69
69
  signing_key:
70
70
  specification_version: 2
71
71
  summary: Rails' 'flash' session notification system ported to Merb