ie_iframe_cookies 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,8 +1,7 @@
1
1
  source :rubygems
2
+ gemspec
2
3
 
3
- group :dev do # not development <-> would add unneeded development dependencies in gemspec
4
+ group :development do
4
5
  gem 'rails', ENV['RAILS']
5
- gem 'redgreen'
6
6
  gem 'rake'
7
- gem 'jeweler'
8
7
  end
data/Gemfile.lock CHANGED
@@ -1,3 +1,8 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ie_iframe_cookies (0.1.3)
5
+
1
6
  GEM
2
7
  remote: http://rubygems.org/
3
8
  specs:
@@ -32,13 +37,8 @@ GEM
32
37
  arel (2.2.1)
33
38
  builder (3.0.0)
34
39
  erubis (2.7.0)
35
- git (1.2.5)
36
40
  hike (1.2.1)
37
41
  i18n (0.6.0)
38
- jeweler (1.6.4)
39
- bundler (~> 1.0)
40
- git (>= 1.2.5)
41
- rake
42
42
  json (1.6.1)
43
43
  mail (2.3.0)
44
44
  i18n (>= 0.4.0)
@@ -74,7 +74,6 @@ GEM
74
74
  rake (0.9.2)
75
75
  rdoc (3.11)
76
76
  json (~> 1.4)
77
- redgreen (1.2.2)
78
77
  sprockets (2.1.1)
79
78
  hike (~> 1.2)
80
79
  rack (~> 1.0)
@@ -90,7 +89,6 @@ PLATFORMS
90
89
  ruby
91
90
 
92
91
  DEPENDENCIES
93
- jeweler
92
+ ie_iframe_cookies!
94
93
  rails
95
94
  rake
96
- redgreen
data/Rakefile CHANGED
@@ -1,29 +1,32 @@
1
+ require 'bundler/gem_tasks'
1
2
  require 'rake/testtask'
3
+
2
4
  Rake::TestTask.new(:test) do |test|
3
5
  test.libs << 'lib'
4
- test.pattern = 'test/**/*_test.rb'
6
+ test.pattern = 'test/ie_iframe_cookies_test.rb'
5
7
  test.verbose = true
6
8
  end
7
9
 
8
10
  task :default do
9
- sh "RAILS=2.3.12 && (bundle || bundle install) && bundle exec rake test"
10
- sh "RAILS=3.0.10 && (bundle || bundle install) && exec rake test"
11
- sh "RAILS=3.1.2 && (bundle || bundle install) && exec rake test"
11
+ %w[2.3.13 3.0.12 3.1.4 3.2.2].each do |rails_version|
12
+ sh "RAILS=#{rails_version} && (bundle || bundle install) && bundle exec rake test"
13
+ end
12
14
  sh "git checkout Gemfile.lock"
13
15
  end
14
16
 
17
+ # extracted from https://github.com/grosser/project_template
18
+ rule /^version:bump:.*/ do |t|
19
+ sh "git status | grep 'nothing to commit'" # ensure we are not dirty
20
+ index = ['major', 'minor','patch'].index(t.name.split(':').last)
21
+ file = 'lib/ie_iframe_cookies/version.rb'
15
22
 
16
- begin
17
- require 'jeweler'
18
- Jeweler::Tasks.new do |gem|
19
- gem.name = 'ie_iframe_cookies'
20
- gem.summary = "Rails: Enabled cookies inside IFrames for IE via p3p headers"
21
- gem.email = "michael@grosser.it"
22
- gem.homepage = "http://github.com/grosser/#{gem.name}"
23
- gem.authors = ["Michael Grosser"]
24
- end
23
+ version_file = File.read(file)
24
+ old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
25
+ version_parts[index] = version_parts[index].to_i + 1
26
+ version_parts[2] = 0 if index < 2 # remove patch for minor
27
+ version_parts[1] = 0 if index < 1 # remove minor for major
28
+ new_version = version_parts * '.'
29
+ File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
25
30
 
26
- Jeweler::GemcutterTasks.new
27
- rescue LoadError
28
- puts "Jeweler, or one of its dependencies, is not available. Install it with: gem install jeweler"
31
+ sh "bundle && git add #{file} Gemfile.lock && git commit -m 'bump version to #{new_version}'"
29
32
  end
data/Readme.md CHANGED
@@ -30,4 +30,4 @@ Authors
30
30
 
31
31
  [Michael Grosser](http://grosser.it)<br/>
32
32
  michael@grosser.it<br/>
33
- Hereby placed under public domain, do what you want, just do not hold me accountable...
33
+ License: MIT
@@ -1,40 +1,12 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
1
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
2
+ name = "ie_iframe_cookies"
3
+ require "#{name}/version"
5
4
 
6
- Gem::Specification.new do |s|
7
- s.name = %q{ie_iframe_cookies}
8
- s.version = "0.1.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
5
+ Gem::Specification.new name, IEIframeCookies::VERSION do |s|
6
+ s.summary = "Rails: Enabled cookies inside IFrames for IE via p3p headers"
11
7
  s.authors = ["Michael Grosser"]
12
- s.date = %q{2011-11-27}
13
- s.email = %q{michael@grosser.it}
14
- s.files = [
15
- "Gemfile",
16
- "Gemfile.lock",
17
- "Rakefile",
18
- "Readme.md",
19
- "VERSION",
20
- "ie_iframe_cookies.gemspec",
21
- "init.rb",
22
- "lib/ie_iframe_cookies.rb",
23
- "test/ie_iframe_cookies_test.rb",
24
- "test/test_helper.rb"
25
- ]
26
- s.homepage = %q{http://github.com/grosser/ie_iframe_cookies}
27
- s.require_paths = ["lib"]
28
- s.rubygems_version = %q{1.6.2}
29
- s.summary = %q{Rails: Enabled cookies inside IFrames for IE via p3p headers}
30
-
31
- if s.respond_to? :specification_version then
32
- s.specification_version = 3
33
-
34
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
35
- else
36
- end
37
- else
38
- end
8
+ s.email = "michael@grosser.it"
9
+ s.homepage = "http://github.com/grosser/#{name}"
10
+ s.files = `git ls-files`.split("\n")
11
+ s.license = "MIT"
39
12
  end
40
-
@@ -1,7 +1,3 @@
1
- class IEIframeCookies
2
- VERSION = File.read( File.join(File.dirname(__FILE__),'..','VERSION') ).strip
3
- end
4
-
5
1
  require 'action_pack'
6
2
 
7
3
  module ActionController
@@ -0,0 +1,3 @@
1
+ module IEIframeCookies
2
+ VERSION = Version = "0.1.3"
3
+ end
@@ -1,4 +1,4 @@
1
- require 'test/test_helper'
1
+ require './test/test_helper'
2
2
 
3
3
  class IETestController < ActionController::Base
4
4
  before_filter :normal_cookies_for_ie_in_iframes!, :only => :activate
data/test/test_helper.rb CHANGED
@@ -40,9 +40,10 @@ end
40
40
  require 'test/unit'
41
41
 
42
42
  $LOAD_PATH << 'lib'
43
+ require 'ie_iframe_cookies/version'
43
44
 
44
45
  # fake rails env for initialisation
45
46
  # when Rails is defined, backtrace_cleaner is used, when assert fails
46
47
  RAILS_ENV='development'
47
48
 
48
- require "init"
49
+ require "./init"
metadata CHANGED
@@ -1,76 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ie_iframe_cookies
3
- version: !ruby/object:Gem::Version
4
- hash: 31
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Michael Grosser
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-11-27 00:00:00 -08:00
19
- default_executable:
12
+ date: 2012-03-28 00:00:00.000000000 Z
20
13
  dependencies: []
21
-
22
14
  description:
23
15
  email: michael@grosser.it
24
16
  executables: []
25
-
26
17
  extensions: []
27
-
28
18
  extra_rdoc_files: []
29
-
30
- files:
19
+ files:
31
20
  - Gemfile
32
21
  - Gemfile.lock
33
22
  - Rakefile
34
23
  - Readme.md
35
- - VERSION
36
24
  - ie_iframe_cookies.gemspec
37
25
  - init.rb
38
26
  - lib/ie_iframe_cookies.rb
27
+ - lib/ie_iframe_cookies/version.rb
39
28
  - test/ie_iframe_cookies_test.rb
40
29
  - test/test_helper.rb
41
- has_rdoc: true
42
30
  homepage: http://github.com/grosser/ie_iframe_cookies
43
- licenses: []
44
-
31
+ licenses:
32
+ - MIT
45
33
  post_install_message:
46
34
  rdoc_options: []
47
-
48
- require_paths:
35
+ require_paths:
49
36
  - lib
50
- required_ruby_version: !ruby/object:Gem::Requirement
37
+ required_ruby_version: !ruby/object:Gem::Requirement
51
38
  none: false
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- hash: 3
56
- segments:
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ segments:
57
44
  - 0
58
- version: "0"
59
- required_rubygems_version: !ruby/object:Gem::Requirement
45
+ hash: -3924685781872135299
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
47
  none: false
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- hash: 3
65
- segments:
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: '0'
52
+ segments:
66
53
  - 0
67
- version: "0"
54
+ hash: -3924685781872135299
68
55
  requirements: []
69
-
70
56
  rubyforge_project:
71
- rubygems_version: 1.6.2
57
+ rubygems_version: 1.8.15
72
58
  signing_key:
73
59
  specification_version: 3
74
- summary: "Rails: Enabled cookies inside IFrames for IE via p3p headers"
60
+ summary: ! 'Rails: Enabled cookies inside IFrames for IE via p3p headers'
75
61
  test_files: []
76
-
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.2