shipstation 0.25 → 0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/Rakefile +30 -30
  4. data/lib/shipstation/api_operations/create.rb +10 -10
  5. data/lib/shipstation/api_operations/delete.rb +10 -10
  6. data/lib/shipstation/api_operations/list.rb +11 -11
  7. data/lib/shipstation/api_operations/retrieve.rb +10 -10
  8. data/lib/shipstation/api_operations/shipment.rb +10 -10
  9. data/lib/shipstation/api_operations/update.rb +9 -9
  10. data/lib/shipstation/api_resource.rb +7 -7
  11. data/lib/shipstation/carrier.rb +11 -11
  12. data/lib/shipstation/customer.rb +5 -5
  13. data/lib/shipstation/fulfillment.rb +16 -0
  14. data/lib/shipstation/order.rb +42 -42
  15. data/lib/shipstation/product.rb +6 -6
  16. data/lib/shipstation/shipment.rb +18 -18
  17. data/lib/shipstation/store.rb +14 -14
  18. data/lib/shipstation/tag.rb +11 -11
  19. data/lib/shipstation/version.rb +3 -3
  20. data/lib/shipstation/warehouse.rb +14 -14
  21. data/lib/shipstation/webhook.rb +18 -18
  22. data/lib/shipstation.rb +97 -96
  23. data/lib/tasks/shipstation_tasks.rake +4 -4
  24. data/test/dummy/Gemfile +54 -54
  25. data/test/dummy/Gemfile.lock +191 -191
  26. data/test/dummy/README.rdoc +28 -28
  27. data/test/dummy/Rakefile +6 -6
  28. data/test/dummy/app/assets/javascripts/application.js +16 -16
  29. data/test/dummy/app/assets/stylesheets/application.css +15 -15
  30. data/test/dummy/app/controllers/application_controller.rb +5 -5
  31. data/test/dummy/app/helpers/application_helper.rb +2 -2
  32. data/test/dummy/app/views/layouts/application.html.erb +14 -14
  33. data/test/dummy/bin/bundle +3 -3
  34. data/test/dummy/bin/rails +9 -9
  35. data/test/dummy/bin/rake +9 -9
  36. data/test/dummy/bin/setup +29 -29
  37. data/test/dummy/bin/spring +17 -17
  38. data/test/dummy/config/application.rb +26 -26
  39. data/test/dummy/config/boot.rb +3 -3
  40. data/test/dummy/config/database.yml +25 -25
  41. data/test/dummy/config/environment.rb +5 -5
  42. data/test/dummy/config/environments/development.rb +41 -41
  43. data/test/dummy/config/environments/production.rb +79 -79
  44. data/test/dummy/config/environments/test.rb +42 -42
  45. data/test/dummy/config/initializers/assets.rb +11 -11
  46. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
  47. data/test/dummy/config/initializers/cookies_serializer.rb +3 -3
  48. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  49. data/test/dummy/config/initializers/inflections.rb +16 -16
  50. data/test/dummy/config/initializers/mime_types.rb +4 -4
  51. data/test/dummy/config/initializers/session_store.rb +3 -3
  52. data/test/dummy/config/initializers/shipstation.rb +1 -1
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
  54. data/test/dummy/config/locales/en.yml +23 -23
  55. data/test/dummy/config/routes.rb +56 -56
  56. data/test/dummy/config/secrets.yml +22 -22
  57. data/test/dummy/config.ru +4 -4
  58. data/test/dummy/db/seeds.rb +7 -7
  59. data/test/dummy/public/404.html +67 -67
  60. data/test/dummy/public/422.html +67 -67
  61. data/test/dummy/public/500.html +66 -66
  62. data/test/dummy/public/favicon.ico +0 -0
  63. data/test/dummy/public/robots.txt +5 -5
  64. data/test/dummy/test/test_helper.rb +10 -10
  65. data/test/shipstation_test.rb +7 -7
  66. data/test/test_helper.rb +20 -20
  67. metadata +38 -37
@@ -1,191 +1,191 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- actionmailer (4.2.7)
5
- actionpack (= 4.2.7)
6
- actionview (= 4.2.7)
7
- activejob (= 4.2.7)
8
- mail (~> 2.5, >= 2.5.4)
9
- rails-dom-testing (~> 1.0, >= 1.0.5)
10
- actionpack (4.2.7)
11
- actionview (= 4.2.7)
12
- activesupport (= 4.2.7)
13
- rack (~> 1.6)
14
- rack-test (~> 0.6.2)
15
- rails-dom-testing (~> 1.0, >= 1.0.5)
16
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
- actionview (4.2.7)
18
- activesupport (= 4.2.7)
19
- builder (~> 3.1)
20
- erubis (~> 2.7.0)
21
- rails-dom-testing (~> 1.0, >= 1.0.5)
22
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
- activejob (4.2.7)
24
- activesupport (= 4.2.7)
25
- globalid (>= 0.3.0)
26
- activemodel (4.2.7)
27
- activesupport (= 4.2.7)
28
- builder (~> 3.1)
29
- activerecord (4.2.7)
30
- activemodel (= 4.2.7)
31
- activesupport (= 4.2.7)
32
- arel (~> 6.0)
33
- activesupport (4.2.7)
34
- i18n (~> 0.7)
35
- json (~> 1.7, >= 1.7.7)
36
- minitest (~> 5.1)
37
- thread_safe (~> 0.3, >= 0.3.4)
38
- tzinfo (~> 1.1)
39
- arel (6.0.4)
40
- binding_of_caller (0.8.0)
41
- debug_inspector (>= 0.0.1)
42
- builder (3.2.3)
43
- byebug (10.0.2)
44
- coffee-rails (4.1.1)
45
- coffee-script (>= 2.2.0)
46
- railties (>= 4.0.0, < 5.1.x)
47
- coffee-script (2.4.1)
48
- coffee-script-source
49
- execjs
50
- coffee-script-source (1.12.2)
51
- concurrent-ruby (1.0.5)
52
- crass (1.0.4)
53
- debug_inspector (0.0.3)
54
- domain_name (0.5.20180417)
55
- unf (>= 0.0.5, < 1.0.0)
56
- erubis (2.7.0)
57
- execjs (2.7.0)
58
- ffi (1.9.25)
59
- globalid (0.4.1)
60
- activesupport (>= 4.2.0)
61
- http-cookie (1.0.3)
62
- domain_name (~> 0.5)
63
- i18n (0.9.5)
64
- concurrent-ruby (~> 1.0)
65
- jbuilder (2.7.0)
66
- activesupport (>= 4.2.0)
67
- multi_json (>= 1.2)
68
- jquery-rails (4.3.3)
69
- rails-dom-testing (>= 1, < 3)
70
- railties (>= 4.2.0)
71
- thor (>= 0.14, < 2.0)
72
- json (1.8.6)
73
- loofah (2.2.2)
74
- crass (~> 1.0.2)
75
- nokogiri (>= 1.5.9)
76
- mail (2.7.0)
77
- mini_mime (>= 0.1.1)
78
- mime-types (3.2.2)
79
- mime-types-data (~> 3.2015)
80
- mime-types-data (3.2018.0812)
81
- mini_mime (1.0.1)
82
- mini_portile2 (2.4.0)
83
- minitest (5.11.3)
84
- multi_json (1.13.1)
85
- netrc (0.11.0)
86
- nokogiri (1.10.4)
87
- mini_portile2 (~> 2.4.0)
88
- rack (1.6.10)
89
- rack-test (0.6.3)
90
- rack (>= 1.0)
91
- rails (4.2.7)
92
- actionmailer (= 4.2.7)
93
- actionpack (= 4.2.7)
94
- actionview (= 4.2.7)
95
- activejob (= 4.2.7)
96
- activemodel (= 4.2.7)
97
- activerecord (= 4.2.7)
98
- activesupport (= 4.2.7)
99
- bundler (>= 1.3.0, < 2.0)
100
- railties (= 4.2.7)
101
- sprockets-rails
102
- rails-deprecated_sanitizer (1.0.3)
103
- activesupport (>= 4.2.0.alpha)
104
- rails-dom-testing (1.0.9)
105
- activesupport (>= 4.2.0, < 5.0)
106
- nokogiri (~> 1.6)
107
- rails-deprecated_sanitizer (>= 1.0.1)
108
- rails-html-sanitizer (1.0.4)
109
- loofah (~> 2.2, >= 2.2.2)
110
- railties (4.2.7)
111
- actionpack (= 4.2.7)
112
- activesupport (= 4.2.7)
113
- rake (>= 0.8.7)
114
- thor (>= 0.18.1, < 2.0)
115
- rake (12.3.1)
116
- rb-fsevent (0.10.3)
117
- rb-inotify (0.9.10)
118
- ffi (>= 0.5.0, < 2)
119
- rdoc (4.3.0)
120
- rest-client (2.0.2)
121
- http-cookie (>= 1.0.2, < 2.0)
122
- mime-types (>= 1.16, < 4.0)
123
- netrc (~> 0.8)
124
- sass (3.5.7)
125
- sass-listen (~> 4.0.0)
126
- sass-listen (4.0.0)
127
- rb-fsevent (~> 0.9, >= 0.9.4)
128
- rb-inotify (~> 0.9, >= 0.9.7)
129
- sass-rails (5.0.7)
130
- railties (>= 4.0.0, < 6)
131
- sass (~> 3.1)
132
- sprockets (>= 2.8, < 4.0)
133
- sprockets-rails (>= 2.0, < 4.0)
134
- tilt (>= 1.1, < 3)
135
- sdoc (0.4.2)
136
- json (~> 1.7, >= 1.7.7)
137
- rdoc (~> 4.0)
138
- shipstation (0.13.4)
139
- rest-client (~> 2)
140
- spring (2.0.2)
141
- activesupport (>= 4.2)
142
- sprockets (3.7.2)
143
- concurrent-ruby (~> 1.0)
144
- rack (> 1, < 3)
145
- sprockets-rails (3.2.1)
146
- actionpack (>= 4.0)
147
- activesupport (>= 4.0)
148
- sprockets (>= 3.0.0)
149
- sqlite3 (1.3.13)
150
- thor (0.20.0)
151
- thread_safe (0.3.6)
152
- tilt (2.0.8)
153
- turbolinks (5.2.0)
154
- turbolinks-source (~> 5.2)
155
- turbolinks-source (5.2.0)
156
- tzinfo (1.2.5)
157
- thread_safe (~> 0.1)
158
- uglifier (4.1.18)
159
- execjs (>= 0.3.0, < 3)
160
- unf (0.1.4)
161
- unf_ext
162
- unf_ext (0.0.7.5)
163
- web-console (2.3.0)
164
- activemodel (>= 4.0)
165
- binding_of_caller (>= 0.7.2)
166
- railties (>= 4.0)
167
- sprockets-rails (>= 2.0, < 4.0)
168
-
169
- PLATFORMS
170
- ruby
171
-
172
- DEPENDENCIES
173
- byebug
174
- coffee-rails (~> 4.1.0)
175
- ffi (~> 1.9.24)
176
- jbuilder (~> 2.0)
177
- jquery-rails
178
- rails (= 4.2.7)
179
- rest-client
180
- sass-rails (~> 5.0)
181
- sdoc (~> 0.4.0)
182
- shipstation
183
- spring
184
- sprockets (~> 3.7.2)
185
- sqlite3
186
- turbolinks
187
- uglifier (>= 1.3.0)
188
- web-console (~> 2.0)
189
-
190
- BUNDLED WITH
191
- 1.14.6
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ actionmailer (4.2.7)
5
+ actionpack (= 4.2.7)
6
+ actionview (= 4.2.7)
7
+ activejob (= 4.2.7)
8
+ mail (~> 2.5, >= 2.5.4)
9
+ rails-dom-testing (~> 1.0, >= 1.0.5)
10
+ actionpack (4.2.7)
11
+ actionview (= 4.2.7)
12
+ activesupport (= 4.2.7)
13
+ rack (~> 1.6)
14
+ rack-test (~> 0.6.2)
15
+ rails-dom-testing (~> 1.0, >= 1.0.5)
16
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
17
+ actionview (4.2.7)
18
+ activesupport (= 4.2.7)
19
+ builder (~> 3.1)
20
+ erubis (~> 2.7.0)
21
+ rails-dom-testing (~> 1.0, >= 1.0.5)
22
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
23
+ activejob (4.2.7)
24
+ activesupport (= 4.2.7)
25
+ globalid (>= 0.3.0)
26
+ activemodel (4.2.7)
27
+ activesupport (= 4.2.7)
28
+ builder (~> 3.1)
29
+ activerecord (4.2.7)
30
+ activemodel (= 4.2.7)
31
+ activesupport (= 4.2.7)
32
+ arel (~> 6.0)
33
+ activesupport (4.2.7)
34
+ i18n (~> 0.7)
35
+ json (~> 1.7, >= 1.7.7)
36
+ minitest (~> 5.1)
37
+ thread_safe (~> 0.3, >= 0.3.4)
38
+ tzinfo (~> 1.1)
39
+ arel (6.0.4)
40
+ binding_of_caller (0.8.0)
41
+ debug_inspector (>= 0.0.1)
42
+ builder (3.2.3)
43
+ byebug (10.0.2)
44
+ coffee-rails (4.1.1)
45
+ coffee-script (>= 2.2.0)
46
+ railties (>= 4.0.0, < 5.1.x)
47
+ coffee-script (2.4.1)
48
+ coffee-script-source
49
+ execjs
50
+ coffee-script-source (1.12.2)
51
+ concurrent-ruby (1.0.5)
52
+ crass (1.0.4)
53
+ debug_inspector (0.0.3)
54
+ domain_name (0.5.20180417)
55
+ unf (>= 0.0.5, < 1.0.0)
56
+ erubis (2.7.0)
57
+ execjs (2.7.0)
58
+ ffi (1.9.25)
59
+ globalid (0.4.1)
60
+ activesupport (>= 4.2.0)
61
+ http-cookie (1.0.3)
62
+ domain_name (~> 0.5)
63
+ i18n (0.9.5)
64
+ concurrent-ruby (~> 1.0)
65
+ jbuilder (2.7.0)
66
+ activesupport (>= 4.2.0)
67
+ multi_json (>= 1.2)
68
+ jquery-rails (4.3.3)
69
+ rails-dom-testing (>= 1, < 3)
70
+ railties (>= 4.2.0)
71
+ thor (>= 0.14, < 2.0)
72
+ json (1.8.6)
73
+ loofah (2.2.2)
74
+ crass (~> 1.0.2)
75
+ nokogiri (>= 1.5.9)
76
+ mail (2.7.0)
77
+ mini_mime (>= 0.1.1)
78
+ mime-types (3.2.2)
79
+ mime-types-data (~> 3.2015)
80
+ mime-types-data (3.2018.0812)
81
+ mini_mime (1.0.1)
82
+ mini_portile2 (2.4.0)
83
+ minitest (5.11.3)
84
+ multi_json (1.13.1)
85
+ netrc (0.11.0)
86
+ nokogiri (1.10.4)
87
+ mini_portile2 (~> 2.4.0)
88
+ rack (1.6.10)
89
+ rack-test (0.6.3)
90
+ rack (>= 1.0)
91
+ rails (4.2.7)
92
+ actionmailer (= 4.2.7)
93
+ actionpack (= 4.2.7)
94
+ actionview (= 4.2.7)
95
+ activejob (= 4.2.7)
96
+ activemodel (= 4.2.7)
97
+ activerecord (= 4.2.7)
98
+ activesupport (= 4.2.7)
99
+ bundler (>= 1.3.0, < 2.0)
100
+ railties (= 4.2.7)
101
+ sprockets-rails
102
+ rails-deprecated_sanitizer (1.0.3)
103
+ activesupport (>= 4.2.0.alpha)
104
+ rails-dom-testing (1.0.9)
105
+ activesupport (>= 4.2.0, < 5.0)
106
+ nokogiri (~> 1.6)
107
+ rails-deprecated_sanitizer (>= 1.0.1)
108
+ rails-html-sanitizer (1.0.4)
109
+ loofah (~> 2.2, >= 2.2.2)
110
+ railties (4.2.7)
111
+ actionpack (= 4.2.7)
112
+ activesupport (= 4.2.7)
113
+ rake (>= 0.8.7)
114
+ thor (>= 0.18.1, < 2.0)
115
+ rake (12.3.1)
116
+ rb-fsevent (0.10.3)
117
+ rb-inotify (0.9.10)
118
+ ffi (>= 0.5.0, < 2)
119
+ rdoc (4.3.0)
120
+ rest-client (2.0.2)
121
+ http-cookie (>= 1.0.2, < 2.0)
122
+ mime-types (>= 1.16, < 4.0)
123
+ netrc (~> 0.8)
124
+ sass (3.5.7)
125
+ sass-listen (~> 4.0.0)
126
+ sass-listen (4.0.0)
127
+ rb-fsevent (~> 0.9, >= 0.9.4)
128
+ rb-inotify (~> 0.9, >= 0.9.7)
129
+ sass-rails (5.0.7)
130
+ railties (>= 4.0.0, < 6)
131
+ sass (~> 3.1)
132
+ sprockets (>= 2.8, < 4.0)
133
+ sprockets-rails (>= 2.0, < 4.0)
134
+ tilt (>= 1.1, < 3)
135
+ sdoc (0.4.2)
136
+ json (~> 1.7, >= 1.7.7)
137
+ rdoc (~> 4.0)
138
+ shipstation (0.13.4)
139
+ rest-client (~> 2)
140
+ spring (2.0.2)
141
+ activesupport (>= 4.2)
142
+ sprockets (3.7.2)
143
+ concurrent-ruby (~> 1.0)
144
+ rack (> 1, < 3)
145
+ sprockets-rails (3.2.1)
146
+ actionpack (>= 4.0)
147
+ activesupport (>= 4.0)
148
+ sprockets (>= 3.0.0)
149
+ sqlite3 (1.3.13)
150
+ thor (0.20.0)
151
+ thread_safe (0.3.6)
152
+ tilt (2.0.8)
153
+ turbolinks (5.2.0)
154
+ turbolinks-source (~> 5.2)
155
+ turbolinks-source (5.2.0)
156
+ tzinfo (1.2.5)
157
+ thread_safe (~> 0.1)
158
+ uglifier (4.1.18)
159
+ execjs (>= 0.3.0, < 3)
160
+ unf (0.1.4)
161
+ unf_ext
162
+ unf_ext (0.0.7.5)
163
+ web-console (2.3.0)
164
+ activemodel (>= 4.0)
165
+ binding_of_caller (>= 0.7.2)
166
+ railties (>= 4.0)
167
+ sprockets-rails (>= 2.0, < 4.0)
168
+
169
+ PLATFORMS
170
+ ruby
171
+
172
+ DEPENDENCIES
173
+ byebug
174
+ coffee-rails (~> 4.1.0)
175
+ ffi (~> 1.9.24)
176
+ jbuilder (~> 2.0)
177
+ jquery-rails
178
+ rails (= 4.2.7)
179
+ rest-client
180
+ sass-rails (~> 5.0)
181
+ sdoc (~> 0.4.0)
182
+ shipstation
183
+ spring
184
+ sprockets (~> 3.7.2)
185
+ sqlite3
186
+ turbolinks
187
+ uglifier (>= 1.3.0)
188
+ web-console (~> 2.0)
189
+
190
+ BUNDLED WITH
191
+ 1.14.6
@@ -1,28 +1,28 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
data/test/dummy/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -1,16 +1,16 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require jquery
14
- //= require jquery_ujs
15
- //= require turbolinks
16
- //= require_tree .
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require turbolinks
16
+ //= require_tree .
@@ -1,15 +1,15 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -1,5 +1,5 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -1,2 +1,2 @@
1
- module ApplicationHelper
2
- end
1
+ module ApplicationHelper
2
+ end
@@ -1,14 +1,14 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
data/test/dummy/bin/rails CHANGED
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('../spring', __FILE__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- APP_PATH = File.expand_path('../../config/application', __FILE__)
8
- require_relative '../config/boot'
9
- require 'rails/commands'
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path('../spring', __FILE__)
4
+ rescue LoadError => e
5
+ raise unless e.message.include?('spring')
6
+ end
7
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
8
+ require_relative '../config/boot'
9
+ require 'rails/commands'
data/test/dummy/bin/rake CHANGED
@@ -1,9 +1,9 @@
1
- #!/usr/bin/env ruby
2
- begin
3
- load File.expand_path('../spring', __FILE__)
4
- rescue LoadError => e
5
- raise unless e.message.include?('spring')
6
- end
7
- require_relative '../config/boot'
8
- require 'rake'
9
- Rake.application.run
1
+ #!/usr/bin/env ruby
2
+ begin
3
+ load File.expand_path('../spring', __FILE__)
4
+ rescue LoadError => e
5
+ raise unless e.message.include?('spring')
6
+ end
7
+ require_relative '../config/boot'
8
+ require 'rake'
9
+ Rake.application.run
data/test/dummy/bin/setup CHANGED
@@ -1,29 +1,29 @@
1
- #!/usr/bin/env ruby
2
- require 'pathname'
3
-
4
- # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
-
7
- Dir.chdir APP_ROOT do
8
- # This script is a starting point to setup your application.
9
- # Add necessary setup steps to this file:
10
-
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
14
-
15
- # puts "\n== Copying sample files =="
16
- # unless File.exist?("config/database.yml")
17
- # system "cp config/database.yml.sample config/database.yml"
18
- # end
19
-
20
- puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
22
-
23
- puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
26
-
27
- puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
29
- end
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end