capybara-on-crack 0.0.1

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.
Files changed (7) hide show
  1. data/Gemfile +11 -0
  2. data/Gemfile.lock +85 -0
  3. data/LICENSE +22 -0
  4. data/README.md +46 -0
  5. data/Rakefile +43 -0
  6. data/Readme.md +46 -0
  7. metadata +106 -0
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source :rubygems
2
+
3
+ gemspec
4
+
5
+ gem "rake"
6
+
7
+ gem "ruby-debug", :platforms => :mri_18
8
+ gem "ruby-debug19", :platforms => :mri_19
9
+
10
+ gem "autotest", ">= 0"
11
+ gem "growl-glue", ">= 0"
data/Gemfile.lock ADDED
@@ -0,0 +1,85 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ capybara-on-crack (0.0.1)
5
+ capybara (>= 0.4.0)
6
+
7
+ GEM
8
+ remote: http://rubygems.org/
9
+ specs:
10
+ archive-tar-minitar (0.5.2)
11
+ autotest (4.4.2)
12
+ capybara (0.4.0)
13
+ celerity (>= 0.7.9)
14
+ culerity (>= 0.2.4)
15
+ mime-types (>= 1.16)
16
+ nokogiri (>= 1.3.3)
17
+ rack (>= 1.0.0)
18
+ rack-test (>= 0.5.4)
19
+ selenium-webdriver (>= 0.0.27)
20
+ xpath (~> 0.1.2)
21
+ celerity (0.8.2)
22
+ childprocess (0.1.3)
23
+ ffi (~> 0.6.3)
24
+ columnize (0.3.1)
25
+ culerity (0.2.12)
26
+ diff-lcs (1.1.2)
27
+ ffi (0.6.3)
28
+ rake (>= 0.8.7)
29
+ growl-glue (1.0.7)
30
+ json_pure (1.4.6)
31
+ linecache (0.43)
32
+ linecache19 (0.5.11)
33
+ ruby_core_source (>= 0.1.4)
34
+ mime-types (1.16)
35
+ nokogiri (1.4.3.1)
36
+ rack (1.2.1)
37
+ rack-test (0.5.6)
38
+ rack (>= 1.0)
39
+ rake (0.8.7)
40
+ rspec (2.0.1)
41
+ rspec-core (~> 2.0.1)
42
+ rspec-expectations (~> 2.0.1)
43
+ rspec-mocks (~> 2.0.1)
44
+ rspec-core (2.0.1)
45
+ rspec-expectations (2.0.1)
46
+ diff-lcs (>= 1.1.2)
47
+ rspec-mocks (2.0.1)
48
+ rspec-core (~> 2.0.1)
49
+ rspec-expectations (~> 2.0.1)
50
+ ruby-debug (0.10.3)
51
+ columnize (>= 0.1)
52
+ ruby-debug-base (~> 0.10.3.0)
53
+ ruby-debug-base (0.10.3)
54
+ linecache (>= 0.3)
55
+ ruby-debug-base19 (0.11.24)
56
+ columnize (>= 0.3.1)
57
+ linecache19 (>= 0.5.11)
58
+ ruby_core_source (>= 0.1.4)
59
+ ruby-debug19 (0.11.6)
60
+ columnize (>= 0.3.1)
61
+ linecache19 (>= 0.5.11)
62
+ ruby-debug-base19 (>= 0.11.19)
63
+ ruby_core_source (0.1.4)
64
+ archive-tar-minitar (>= 0.5.2)
65
+ rubyzip (0.9.4)
66
+ selenium-webdriver (0.0.29)
67
+ childprocess (>= 0.0.7)
68
+ ffi (~> 0.6.3)
69
+ json_pure
70
+ rubyzip
71
+ xpath (0.1.2)
72
+ nokogiri (~> 1.3)
73
+
74
+ PLATFORMS
75
+ ruby
76
+
77
+ DEPENDENCIES
78
+ autotest
79
+ capybara (>= 0.4.0)
80
+ capybara-on-crack!
81
+ growl-glue
82
+ rake
83
+ rspec (~> 2.0)
84
+ ruby-debug
85
+ ruby-debug19
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2010 Jacques Crocker
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 NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,46 @@
1
+ Capybara on Crack
2
+ ==================
3
+
4
+ Ever become frustrated that Capybara doesn't do what you want it to do? Solution in these situations is always: CRACK!
5
+
6
+ Capybara on Crack is a set of patches on top of Capybara that makes it do what you actually want it to do.
7
+
8
+
9
+ ## Why?
10
+
11
+ Not every app is a run of the mill, load page, post form, check results. Sometimes you need some complex client/server interactions.
12
+
13
+ Maybe Capybara isn't the tool for this job. I don't know yet. But every other solution is broken in 1000 more ways than Capybara. So... let's see if we can try to force Capybara to do what we want.
14
+
15
+ ## Help out?
16
+
17
+ Wish Capybara did something? Help out!
18
+
19
+ ## Features (planned)
20
+
21
+ ### Getting and Setting Cookies
22
+
23
+ Hurray, you can now get/set cookies with Capybara
24
+
25
+
26
+ example code
27
+
28
+
29
+ ### Rack-Test driver that doesn't suck
30
+
31
+ Capybara on Crack has lots of extensions to the Rack-Test driver that allows you to do things that Capybara doesn't want you to do when it's sober.
32
+
33
+
34
+ example code
35
+
36
+
37
+
38
+ ### Subdomain handling
39
+
40
+ Yes, people use subdomains. It shouldn't be a royal pain in the ass to test it.
41
+
42
+
43
+ example code
44
+
45
+
46
+
data/Rakefile ADDED
@@ -0,0 +1,43 @@
1
+ require "bundler"
2
+ Bundler.setup
3
+
4
+ require 'rake'
5
+ require 'rake/gempackagetask'
6
+
7
+ gemspec = eval(File.read('capybara-on-crack.gemspec'))
8
+ Rake::GemPackageTask.new(gemspec) do |pkg|
9
+ pkg.gem_spec = gemspec
10
+ end
11
+
12
+ desc "build the gem and release it to rubygems.org"
13
+ task :release => :gem do
14
+ puts "Tagging #{gemspec.version}..."
15
+ system "git tag -a #{gemspec.version} -m 'Tagging #{gemspec.version}'"
16
+ puts "Pushing to Github..."
17
+ system "git push --tags"
18
+ puts "Pushing to rubygems.org..."
19
+ system "gem push pkg/#{gemspec.name}-#{gemspec.version}.gem"
20
+ end
21
+
22
+ require "rspec"
23
+ require "rspec/core/rake_task"
24
+
25
+ Rspec::Core::RakeTask.new(:spec) do |spec|
26
+ spec.pattern = "spec/**/*_spec.rb"
27
+ end
28
+
29
+ Rspec::Core::RakeTask.new('spec:progress') do |spec|
30
+ spec.rspec_opts = %w(--format progress)
31
+ spec.pattern = "spec/**/*_spec.rb"
32
+ end
33
+
34
+ require "rake/rdoctask"
35
+ Rake::RDocTask.new do |rdoc|
36
+ rdoc.rdoc_dir = "rdoc"
37
+ rdoc.title = "Rails Config #{gemspec.version}"
38
+ rdoc.rdoc_files.include("README*")
39
+ rdoc.rdoc_files.include("lib/**/*.rb")
40
+ end
41
+
42
+
43
+ task :default => :spec
data/Readme.md ADDED
@@ -0,0 +1,46 @@
1
+ Capybara on Crack
2
+ ==================
3
+
4
+ Ever become frustrated that Capybara doesn't do what you want it to do? Solution in these situations is always: CRACK!
5
+
6
+ Capybara on Crack is a set of patches on top of Capybara that makes it do what you actually want it to do.
7
+
8
+
9
+ ## Why?
10
+
11
+ Not every app is a run of the mill, load page, post form, check results. Sometimes you need some complex client/server interactions.
12
+
13
+ Maybe Capybara isn't the tool for this job. I don't know yet. But every other solution is broken in 1000 more ways than Capybara. So... let's see if we can try to force Capybara to do what we want.
14
+
15
+ ## Help out?
16
+
17
+ Wish Capybara did something? Help out!
18
+
19
+ ## Features (planned)
20
+
21
+ ### Getting and Setting Cookies
22
+
23
+ Hurray, you can now get/set cookies with Capybara
24
+
25
+
26
+ example code
27
+
28
+
29
+ ### Rack-Test driver that doesn't suck
30
+
31
+ Capybara on Crack has lots of extensions to the Rack-Test driver that allows you to do things that Capybara doesn't want you to do when it's sober.
32
+
33
+
34
+ example code
35
+
36
+
37
+
38
+ ### Subdomain handling
39
+
40
+ Yes, people use subdomains. It shouldn't be a royal pain in the ass to test it.
41
+
42
+
43
+ example code
44
+
45
+
46
+
metadata ADDED
@@ -0,0 +1,106 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capybara-on-crack
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Jacques Crocker
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-11-04 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ type: :runtime
23
+ prerelease: false
24
+ name: capybara
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 15
31
+ segments:
32
+ - 0
33
+ - 4
34
+ - 0
35
+ version: 0.4.0
36
+ requirement: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ type: :development
39
+ prerelease: false
40
+ name: rspec
41
+ version_requirements: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ hash: 3
47
+ segments:
48
+ - 2
49
+ - 0
50
+ version: "2.0"
51
+ requirement: *id002
52
+ description: Adds extensions to capybara that make individual drivers more powerful and flexible.
53
+ email:
54
+ - railsjedi@gmail.com
55
+ executables: []
56
+
57
+ extensions: []
58
+
59
+ extra_rdoc_files:
60
+ - LICENSE
61
+ - README.md
62
+ files:
63
+ - Gemfile
64
+ - Gemfile.lock
65
+ - LICENSE
66
+ - Rakefile
67
+ - Readme.md
68
+ - README.md
69
+ has_rdoc: true
70
+ homepage: https://github.com/railsjedi/capybara-on-crack
71
+ licenses: []
72
+
73
+ post_install_message:
74
+ rdoc_options: []
75
+
76
+ require_paths:
77
+ - lib
78
+ required_ruby_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
86
+ version: "0"
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 23
93
+ segments:
94
+ - 1
95
+ - 3
96
+ - 6
97
+ version: 1.3.6
98
+ requirements: []
99
+
100
+ rubyforge_project: nowarning
101
+ rubygems_version: 1.3.7
102
+ signing_key:
103
+ specification_version: 3
104
+ summary: Makes capybara do more shit
105
+ test_files: []
106
+