thredded_create_app 0.1.18 → 0.1.19

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: e5dce72b9a0003fe725e6e4ee50897f6d67c0d51
4
- data.tar.gz: '09f4480264a614040a97dd322441cd4dac9748c0'
3
+ metadata.gz: 25b22f0d209f637078488a3e6a610ca729c34b24
4
+ data.tar.gz: 83c530efde26b667bf1123fed742c1fa8d856521
5
5
  SHA512:
6
- metadata.gz: 4d2ae61e5101b67ae09d54207c710667c4a84d83ad7f977266a2ecef654723b28584d513c99bb66aa0228f693833980fe21634ec43f52503b4526f1550efb96a
7
- data.tar.gz: 759a81eccb99b99a6fa9f05b291c31de5b0740a49c0603f7549211a99d432ef3c7a0ca6b1adeb93eae0c7d697b1ba688f4b38f7f76b3edc54bd28b5e6847f282
6
+ metadata.gz: bc809482a5ccd36d58698592c27a6817834e0e81e59fd599a80e203fc553a45fc56f0027c25efe8399f6594440dba1c178f3f53450fe3bfca542ee7754f69e64
7
+ data.tar.gz: 7b0bfc888cbebd7404758dc25ea0c2fca12daa17a8669d0637c3800eab12a28d15c47937b354a2ed327124251f1dd6edadca74ec6cc06ecf6a3b2114aad9f1a3
@@ -71,6 +71,8 @@ module ThreddedCreateApp
71
71
  def add_thredded_javascripts
72
72
  copy 'add_thredded/myapp_thredded.js',
73
73
  "app/assets/javascripts/#{app_name}_thredded.js"
74
+ copy 'add_thredded/javascripts/thredded/dependencies/ujs.js',
75
+ 'app/assets/javascripts/thredded/dependencies/ujs.js'
74
76
  end
75
77
 
76
78
  def add_admin_column_to_users
@@ -75,9 +75,9 @@ module ThreddedCreateApp
75
75
  def replace(path, pattern, replacement = nil, optional: false)
76
76
  src = File.read(path)
77
77
  changed = if block_given?
78
- src.gsub!(pattern) { |_| yield Regexp.last_match }
78
+ src.sub!(pattern) { |_| yield Regexp.last_match }
79
79
  else
80
- src.gsub!(pattern, replacement)
80
+ src.sub!(pattern, replacement)
81
81
  end
82
82
  unless changed || optional
83
83
  fail ThreddedCreateApp::CommandError,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ThreddedCreateApp
4
- VERSION = '0.1.18'
4
+ VERSION = '0.1.19'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thredded_create_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Mazovetskiy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-15 00:00:00.000000000 Z
11
+ date: 2017-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: term-ansicolor
@@ -137,6 +137,7 @@ files:
137
137
  - lib/thredded_create_app/tasks/add_thredded.rb
138
138
  - lib/thredded_create_app/tasks/add_thredded/_thredded-custom.scss
139
139
  - lib/thredded_create_app/tasks/add_thredded/_thredded-variables.scss
140
+ - lib/thredded_create_app/tasks/add_thredded/javascripts/thredded/dependencies/ujs.js
140
141
  - lib/thredded_create_app/tasks/add_thredded/myapp_thredded.js
141
142
  - lib/thredded_create_app/tasks/add_thredded/spec/features/thredded_spec.rb
142
143
  - lib/thredded_create_app/tasks/add_thredded/thredded.en.yml