hopskip 0.0.1 → 0.0.5

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.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Hopskip
2
2
 
3
+ [![Code Climate](https://codeclimate.com/github/boxuk/hopskip.png)](https://codeclimate.com/github/boxuk/hopskip)
4
+
3
5
  Write [hopscotch](https://github.com/linkedin/hopscotch) introductions simply by adding YAML files to your Rails application.
4
6
 
5
7
  ## Install
@@ -42,4 +44,8 @@ The contents of each of these files should look similar to this:
42
44
  - title: another title...
43
45
  #...
44
46
 
47
+ You can generate an example tour file by using the included generator:
48
+
49
+ rails generate tour [controller_name]
50
+
45
51
  For a full list of params, check out the hopscotch docs.
@@ -0,0 +1,8 @@
1
+ # This is an example Hopskip tour file.
2
+ ---
3
+ index:
4
+ steps:
5
+ - title: Welcome to my product
6
+ content: Welcome
7
+ target: left_util
8
+ placement: right
@@ -0,0 +1,9 @@
1
+ class TourGenerator < Rails::Generators::Base
2
+
3
+ argument :controller, type: :string
4
+ source_root File.expand_path("../templates", __FILE__)
5
+
6
+ def generate_tour
7
+ copy_file "template_tour.yml", "tours/#{ controller.downcase }_tour.yml"
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module Hopskip
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -35,3 +35,32 @@ Connecting to database specified by database.yml
35
35
   (0.0ms) rollback transaction
36
36
   (0.0ms) begin transaction
37
37
   (0.0ms) rollback transaction
38
+ Connecting to database specified by database.yml
39
+  (0.3ms) begin transaction
40
+  (0.0ms) rollback transaction
41
+  (0.0ms) begin transaction
42
+  (0.0ms) rollback transaction
43
+  (0.0ms) begin transaction
44
+  (0.0ms) rollback transaction
45
+ Connecting to database specified by database.yml
46
+  (0.3ms) begin transaction
47
+  (0.0ms) rollback transaction
48
+  (0.0ms) begin transaction
49
+  (0.0ms) rollback transaction
50
+  (0.0ms) begin transaction
51
+  (0.0ms) rollback transaction
52
+ Connecting to database specified by database.yml
53
+ Connecting to database specified by database.yml
54
+  (0.4ms) begin transaction
55
+  (0.0ms) rollback transaction
56
+  (0.0ms) begin transaction
57
+  (0.0ms) rollback transaction
58
+  (0.0ms) begin transaction
59
+  (0.0ms) rollback transaction
60
+ Connecting to database specified by database.yml
61
+  (0.4ms) begin transaction
62
+  (0.0ms) rollback transaction
63
+  (0.0ms) begin transaction
64
+  (0.0ms) rollback transaction
65
+  (0.0ms) begin transaction
66
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hopskip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-05 00:00:00.000000000 Z
12
+ date: 2013-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -50,6 +50,8 @@ executables: []
50
50
  extensions: []
51
51
  extra_rdoc_files: []
52
52
  files:
53
+ - lib/generators/templates/template_tour.yml
54
+ - lib/generators/tour_generator.rb
53
55
  - lib/hopskip/hopscotch_parser.rb
54
56
  - lib/hopskip/version.rb
55
57
  - lib/hopskip.rb
@@ -112,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
114
  version: '0'
113
115
  segments:
114
116
  - 0
115
- hash: -2896449530768697200
117
+ hash: 1359181239865309750
116
118
  required_rubygems_version: !ruby/object:Gem::Requirement
117
119
  none: false
118
120
  requirements:
@@ -121,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
123
  version: '0'
122
124
  segments:
123
125
  - 0
124
- hash: -2896449530768697200
126
+ hash: 1359181239865309750
125
127
  requirements: []
126
128
  rubyforge_project:
127
129
  rubygems_version: 1.8.25