kickjack 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjE1ZGIxMTBmYWYyYzM0ZmQxNTFlN2Q2NDQyMTdlYjUzNmNjOTk0Nw==
5
+ data.tar.gz: !binary |-
6
+ NDkwMjZkOTM4ZjY0YjY1MjNmMTQxYmEwOTMzYzNlMzRhMjg0NDA2OA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZGNjNTgzZmFiOGUzYzVlOTA4OWE3Y2IwNWE0N2JjMmFhMmFjZjkxMzBjMTk0
10
+ MDg1OWIyMzIyYTUwNjJkNDhkMmY5NDMyZmNjYWQ5NDc5NTdmMWVlMjZmYTc3
11
+ YjJmYTBiNTIzNTE4ODNlZDIzMmNiN2ZkMTJkNmQ4ZDk2ZDU1MjU=
12
+ data.tar.gz: !binary |-
13
+ MDAwMmRiMmU5YzMxNGRhYjNjYWVhNzM4Njk5MjZkZjUzNTE5NGNjMzE3ZjAy
14
+ MWQyY2ZiNTM1YWQzZGMxNTg3YzA2NGQ4NjkwNWZhNTYwZTQxOWUxNDc4MGRh
15
+ ZTA0NTY2ODYwYTcyMmJmMjM5OWVhMTkyYjIyMTZkNmFkMmE4MjQ=
data/.gitignore ADDED
@@ -0,0 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+ .DS_Store
15
+
16
+ # YARD artifacts
17
+ .yardoc
18
+ _yardoc
19
+ doc/
data/README.md ADDED
@@ -0,0 +1,12 @@
1
+ #kickjack
2
+
3
+ Note: This gem is currently in development!
4
+
5
+ ## Description
6
+ An automation framework using the power of ruby with capybara and cucumber to help people automate their applications!
7
+
8
+ ## Tests
9
+ There are no tests at present but these will be added!
10
+
11
+ ##Feedback
12
+ I would be more than happy to recieve feedback, please email me at: jonathan.chrisp@gmail.com
data/bin/kickjack CHANGED
@@ -1,2 +1,34 @@
1
1
  #!/usr/bin/env ruby
2
- require 'kickjack'
2
+ require 'highline/import'
3
+ require File.join(File.dirname(__FILE__), 'kickjack-generate')
4
+
5
+ # Create highline color scheme
6
+ kickjack_scheme = HighLine::ColorScheme.new do |cs|
7
+ cs[:headline] = [:bold, :red, :on_black]
8
+ cs[:horizontal_line] = [:bold, :white, :on_black]
9
+ cs[:error] = [:bold, :red, :on_black]
10
+ cs[:success] = [:bold, :green, :on_black]
11
+ cs[:warn] = [:bold, :yellow, :on_black]
12
+ end
13
+
14
+ HighLine.color_scheme = kickjack_scheme
15
+
16
+ # Create directory instance variables
17
+ @features_dir = File.join(FileUtils.pwd, 'features')
18
+ @source_dir = File.join(File.dirname(__FILE__), '..', 'features-shell')
19
+
20
+ # Check if no arguments
21
+ if(ARGV.empty?)
22
+ say('<%= color("Kickjack - an automation kickstarter to get you up and running!!", :success) %>')
23
+ exit 0
24
+ end
25
+
26
+ # Determine argument passed
27
+ case ARGV.shift
28
+ when 'generate', 'gen'
29
+ generate
30
+ exit 0
31
+ else
32
+ say('<%= color("We\'re sorry but we don\'t accept that command!", :error) %>')
33
+ exit 1
34
+ end
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ def generate
3
+ if File.exists?(@features_dir)
4
+ say("<%= color('A features directory already exists. Aborting!', :error) %>")
5
+ exit 1
6
+ else
7
+ choices = "yn"
8
+ answer = ask("<%= color('Create features base directory? [#{choices}]?', :warn) %>") do |q|
9
+ q.echo = false
10
+ q.character = true
11
+ q.validate = /\A[#{choices}]\Z/
12
+ end
13
+
14
+ if answer == 'y'
15
+ FileUtils.cp_r(@source_dir, @features_dir)
16
+ say("\n<%= color('Created features directory! Success!', :success) %>")
17
+ else
18
+ say("\n<%= color('No features directory created!', :warn) %>")
19
+ end
20
+ end
21
+ end
@@ -0,0 +1 @@
1
+ # This is the standard env.rb template
@@ -0,0 +1,10 @@
1
+ # This is the standard hooks.rb template
2
+
3
+ Before do
4
+ end
5
+
6
+ After do
7
+ end
8
+
9
+ at_exit do
10
+ end
data/kickjack.gemspec ADDED
@@ -0,0 +1,22 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = 'kickjack'
3
+ s.version = '0.0.2'
4
+ s.date = '2013-04-17'
5
+ s.summary = "Kickjack - an automation kickstarter to get you up and running!"
6
+ s.description = "An automation framework to help people automate their application using capybara, cucumber and ruby"
7
+ s.authors = ["Jonathan Chrisp"]
8
+ s.email = 'jonathan.chrisp@gmail.com'
9
+ s.license = 'MIT'
10
+ s.homepage = 'https://github.com/jonathanchrisp/kickjack'
11
+ s.required_ruby_version = ">= 1.9.2"
12
+
13
+ s.add_development_dependency 'rspec', '~> 2.13.0'
14
+ s.add_development_dependency 'rake', '~> 10.0.4'
15
+
16
+ s.add_runtime_dependency 'highline', '~> 1.6.18'
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
+ s.test_files = `git ls-files -- spec/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ['lib']
22
+ end
data/lib/kickjack.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  class Kickjack
2
2
 
3
- def self.hello
4
- puts 'Hello World'
5
- end
3
+ class << self
4
+
5
+ end
6
6
 
7
7
  end
metadata CHANGED
@@ -1,48 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kickjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jonathan Chrisp
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-21 00:00:00.000000000 Z
13
- dependencies: []
14
- description: An automation framework to help people automate their applications
11
+ date: 2013-04-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 2.13.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 2.13.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 10.0.4
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 10.0.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: highline
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 1.6.18
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 1.6.18
55
+ description: An automation framework to help people automate their application using
56
+ capybara, cucumber and ruby
15
57
  email: jonathan.chrisp@gmail.com
16
58
  executables:
17
59
  - kickjack
60
+ - kickjack-generate.rb
18
61
  extensions: []
19
62
  extra_rdoc_files: []
20
63
  files:
21
- - lib/kickjack.rb
64
+ - .gitignore
65
+ - README.md
22
66
  - bin/kickjack
67
+ - bin/kickjack-generate.rb
68
+ - features-shell/support/env.rb
69
+ - features-shell/support/hooks.rb
70
+ - kickjack.gemspec
71
+ - lib/kickjack.rb
23
72
  homepage: https://github.com/jonathanchrisp/kickjack
24
- licenses: []
73
+ licenses:
74
+ - MIT
75
+ metadata: {}
25
76
  post_install_message:
26
77
  rdoc_options: []
27
78
  require_paths:
28
79
  - lib
29
80
  required_ruby_version: !ruby/object:Gem::Requirement
30
- none: false
31
81
  requirements:
32
82
  - - ! '>='
33
83
  - !ruby/object:Gem::Version
34
- version: '0'
84
+ version: 1.9.2
35
85
  required_rubygems_version: !ruby/object:Gem::Requirement
36
- none: false
37
86
  requirements:
38
87
  - - ! '>='
39
88
  - !ruby/object:Gem::Version
40
89
  version: '0'
41
90
  requirements: []
42
91
  rubyforge_project:
43
- rubygems_version: 1.8.25
92
+ rubygems_version: 2.0.3
44
93
  signing_key:
45
- specification_version: 3
46
- summary: Kickjack - an automation kick start
94
+ specification_version: 4
95
+ summary: Kickjack - an automation kickstarter to get you up and running!
47
96
  test_files: []
48
97
  has_rdoc: