make_it_so 0.1.1 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f4d7ee9af1b9999e285145d6b46472c5960065d
4
- data.tar.gz: 326e87eeba816bf6ff56e6a69510665ae18d1d8b
3
+ metadata.gz: f9864db219b4b9f7d0d08c9d6853bf00872f08ef
4
+ data.tar.gz: b765fc0c91387f7318c366dd8a041f2d2ee820ed
5
5
  SHA512:
6
- metadata.gz: 052fd4f209532f6bb4edbaf048c9099a70197764fc6bee543f74ac89fb37168e6aa9a07bd930a35b0988444ae2b3b119838acec56db1e94492b37d714d8d1dfa
7
- data.tar.gz: a18eb74e846e717da8164bbf4c808017d17954586133a89edbb3a6fef17fd722552f8d16e07200d9394f5ab37869583fd9423b12a74a13ee4b30f0eccae0d8ed
6
+ metadata.gz: b74f126037ae41cf383d4f28ee91b35afce88345fad93f327033b50b75268447639f70d94405405969774fdf05c97b692fa8e0f849c4047fd5f1030e99828085
7
+ data.tar.gz: 670275af0a08a2d43fb4914aadf4463b9d87f7a6f1e3670b19a83d23dad6c3be148a4b1e72e95f29a73a2cc9858ddce3bd88396eedd165b8eb8473a1ea06b782
@@ -11,8 +11,12 @@ module MakeItSo
11
11
  end
12
12
 
13
13
  def base_javascripts
14
+ self.gem 'jquery-rails'
14
15
  inside 'app/assets/javascripts' do
15
16
  template 'application.js'
17
+ jquery_files = "//= require jquery\n" +
18
+ "//= require jquery_ujs\n"
19
+ gsub_file 'application.js', "//= require rails-ujs\n", jquery_files
16
20
  end
17
21
  end
18
22
 
@@ -188,6 +192,12 @@ module MakeItSo
188
192
  # there is a pull request open to skip this:
189
193
  # https://github.com/zurb/foundation-rails/pull/108
190
194
  remove_file 'app/views/layouts/foundation.html.erb'
195
+
196
+ inside 'app/assets/javascripts' do
197
+ insert_into_file 'application.js',
198
+ "//= require foundation\n",
199
+ after: "//= require jquery_ujs\n"
200
+ end
191
201
  end
192
202
  end
193
203
 
@@ -1,3 +1,3 @@
1
1
  module MakeItSo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -6,7 +6,7 @@ feature 'user signs in', %Q{
6
6
  So that I can regain access to my account
7
7
  } do
8
8
  scenario 'specify valid credentials' do
9
- user = FactoryGirl.create(:user)
9
+ user = FactoryBot.create(:user)
10
10
 
11
11
  visit new_user_session_path
12
12
 
@@ -23,7 +23,7 @@ feature 'user signs in', %Q{
23
23
  visit new_user_session_path
24
24
 
25
25
  click_button 'Log in'
26
- expect(page).to have_content('Invalid email or password')
26
+ expect(page).to have_content('Invalid Email or password')
27
27
  expect(page).to_not have_content('Sign Out')
28
28
  end
29
29
  end
@@ -11,7 +11,7 @@ feature 'user signs out', %Q{
11
11
  # forgotten on the machine I'm using
12
12
 
13
13
  scenario 'authenticated user signs out' do
14
- user = FactoryGirl.create(:user)
14
+ user = FactoryBot.create(:user)
15
15
 
16
16
  visit new_user_session_path
17
17
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: make_it_so
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Pickett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor