leap_salesforce_ui 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 526d7426b4cbc68a811661af10184c81150a07d5b9f7441909758a84a6ff6353
4
- data.tar.gz: '0248a74aeaf95af16ac34ffecac449710687283b3b27bedef3bb0814e4d95106'
3
+ metadata.gz: 1d7e63743b865e1a4fd706abeb9772fa5726a6304c336fe40dd6f32a455119b9
4
+ data.tar.gz: da6bfe38c4f2479a0ddb06e748ff262ac80d45fe9872839d115c0ccdb1eda758
5
5
  SHA512:
6
- metadata.gz: 829da20fbece1a80e9e01e099d6bbdaf1d1f949670c9e91ac09d37154dd194c62fe91e9a5dd65586dc53a1597e80a3a2e0d9aa6b6fead07d61aa32cc0b051a76
7
- data.tar.gz: 0612cb14198ae7ec1cd0200ec952661346262aefab0c746f4e4fb3ded1a4d7269bb1c925bf593ab3280dfc7c37f4ce5a261b8585f4dd11119ddc514b84602272
6
+ metadata.gz: 9c0e05222bdb5c9c86f4367fc50a5e0bbb381d21329e7588cc4760011d636b4526aebe2e84db0ccf6ae60441186f673b6df70a73a1c370b3cbb54191d19f84c8
7
+ data.tar.gz: 78456a3a7afcd73a3e7b779843f17485f45b6c11b406038fa1ec43bdf2b8aee1b9cb6bef4fa66796f44c32f571591e6db1ce7b8b8f636d2064c3383dc85ddb6d
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.1.6
2
+ * Bug fix
3
+ * Not appending to Gemfile meant Rakefile could not load leap_salesfore_ui rake tasks
4
+
1
5
  Version 0.1.5
2
6
  * Enhancements
3
7
  * Added logging of actions
@@ -31,6 +31,7 @@ module LeapSalesforce
31
31
  def init
32
32
  puts "Initialising initial files to get started with leap_salesforce_ui"
33
33
  append "Rakefile", "Rakefile.erb"
34
+ append "Gemfile", "Gemfile.erb"
34
35
  puts 'Running Rake task "leaps:create_poms"'
35
36
  puts `rake leaps:create_poms`
36
37
  append File.join("spec", "spec_helper.rb"), "spec_helper.rb.erb"
@@ -10,12 +10,16 @@ module LeapSalesforce
10
10
 
11
11
  # Create content in a file, adding to an existing file if present
12
12
  def append(filename, template_path)
13
- FileUtils.touch filename unless File.exist? filename
13
+ verb = "Appending to"
14
+ unless File.exist? filename
15
+ FileUtils.touch filename
16
+ verb = "Creating"
17
+ end
14
18
  content = read_template template_path, binding, folder: __dir__
15
19
  if File.read(filename).include?(content)
16
20
  puts "File '#{filename}' already has expected content, skipping...".colorize :red
17
21
  else
18
- puts "\u2713 Appending to #{filename}".colorize :green
22
+ puts "\u2713 #{verb} #{filename}".colorize :green
19
23
  open(filename, "a") { |f| f.puts content }
20
24
  end
21
25
  end
@@ -0,0 +1 @@
1
+ gem 'leap_salesforce_ui'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LeapSalesforceUi
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leap_salesforce_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - IQA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-02-16 00:00:00.000000000 Z
12
+ date: 2021-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: leap_salesforce
@@ -91,6 +91,7 @@ files:
91
91
  - lib/leap_salesforce_ui/form_filler.rb
92
92
  - lib/leap_salesforce_ui/generator/appenders.rb
93
93
  - lib/leap_salesforce_ui/generator/page_objects.rb
94
+ - lib/leap_salesforce_ui/generator/templates/Gemfile.erb
94
95
  - lib/leap_salesforce_ui/generator/templates/Rakefile.erb
95
96
  - lib/leap_salesforce_ui/generator/templates/create_page.rb.erb
96
97
  - lib/leap_salesforce_ui/generator/templates/spec_helper.rb.erb