xcfit 4.0.4 → 4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fda9b93267e254b9436b9a4e673ebaaaefb58e7
4
- data.tar.gz: ff693fcc8b634bf9318c4699b420f5ea753deb2d
3
+ metadata.gz: c89dd4a30923b99f98191eb46f5cd59cd78ec7a1
4
+ data.tar.gz: 74685620ace8103fedb6bfd118a457f22343686a
5
5
  SHA512:
6
- metadata.gz: 497beb0a4cf0b2a44cbc348b0bb241ad1674077974e85bfde14e579ad125b172aac9d1c3012d683d2868925b3ad70046927e4db93ed569e6eb630b11d76ee505
7
- data.tar.gz: 99f035fbf2107cf34be0d28334fabec22c21704fbf0aaf4d9fc9e4fd6598f0370387dc5df90c8510bade1879cbbbad308108c2e46dabaad4a6fa52c300b172cf
6
+ metadata.gz: c8152f246a840639edb226ad93d253f078d48f8731aa856e2d78b06d9a26bf19526b61df4828faada827e78124f005e08ae245c1ce6113c6c78a66c9531587a8
7
+ data.tar.gz: 29ab597002a02f16eaac041eab1a051152f5aded4aed263c62e900fa0c18519ed1d5de443984446c275345534eaf843fc5b0e5f83ff51f4da14cb5399f6937fd
data/Cocoapods/Podfile ADDED
@@ -0,0 +1,30 @@
1
+ use_frameworks!
2
+
3
+ # Replace the values with your targets for the CocoaPods.
4
+ # Also Comment the targets you are no longer using in the project.
5
+
6
+ PROTOCOL_BDD_TARGET = "YOUR_APP_ProtocolBDDTests"
7
+ PAGE_OBJECT_TEST_TARGET = "YOUR_APP_PageObjectTests"
8
+ CUCUMBER_TEST_TARGET = "YOUR_APP_CucumberTests"
9
+ FITNESSE_ACCEPTANCE_TEST_TARGET = "AcceptanceTests"
10
+ FITNESSE_ACCEPTANCE_XCTEST_TARGET = "AcceptanceUnitTests"
11
+
12
+ target PROTOCOL_BDD_TARGET do
13
+ pod 'XCFit'
14
+ end
15
+
16
+ target PAGE_OBJECT_TEST_TARGET do
17
+ pod 'XCFit'
18
+ end
19
+
20
+ target CUCUMBER_TEST_TARGET do
21
+ pod 'XCFit'
22
+ end
23
+
24
+ target FITNESSE_ACCEPTANCE_TEST_TARGET do
25
+ pod 'OCSlimProject'
26
+ end
27
+
28
+ target FITNESSE_ACCEPTANCE_XCTEST_TARGET do
29
+ pod 'OCSlimProjectTestBundleSupport'
30
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xcfit (4.0.3)
4
+ xcfit (4.0.4)
5
5
  thor (~> 0.17.0)
6
6
 
7
7
  GEM
data/XCFit.podspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = 'XCFit'
3
- s.version = '4.0.4'
3
+ s.version = '4.0.5'
4
4
  s.summary = 'Full Stack BDD for iOS and macOS Apps with Swift, Xcode using XCUITest, Cucumberish, FitNesse and friends.'
5
5
 
6
6
  s.description = <<-DESC
data/homebrew/xcfit CHANGED
@@ -3,7 +3,7 @@
3
3
  require 'fileutils'
4
4
  require 'tempfile'
5
5
 
6
- VERSION = "4.0.4"
6
+ VERSION = "4.0.5"
7
7
 
8
8
  @root_dir = File.expand_path('~')
9
9
  @root_lib_dir = File.join(@root_dir, 'Library')
@@ -54,6 +54,13 @@ def setup_xcode_templates
54
54
  puts " ***************** Enjoy XCFit *****************"
55
55
  end
56
56
 
57
+ def setup_xcfit_podfile
58
+ puts '=======Creating Template Podfile for the XCFit project'
59
+ puts '=======You need to replace targets with your project targets and comment unwanted targets ========'
60
+ system("curl -s -O https://raw.githubusercontent.com/Shashikant86/XCFit/master/Cocoapods/Podfile")
61
+ puts "Podfile successfully created in the current working directory here at #{Dir.getwd}/Podfile"
62
+ end
63
+
57
64
  def print_usage
58
65
  puts <<EOF
59
66
 
@@ -62,6 +69,8 @@ def print_usage
62
69
  <command-name> can be one of
63
70
  setup_xcode_templates
64
71
  generate a Xcode 8 Templates for the XCUI, Fitnesse and Cucumberish
72
+ setup_xcfit_podfile
73
+ Creates template Podfile for the XCFit project covering all targets.
65
74
  version
66
75
  prints the XCFit version
67
76
  help
@@ -88,6 +97,8 @@ def print_help
88
97
 
89
98
  setup_xcode_templates : Generate a Xcode Target and File Templates for the XCUI, Fitnesse and Cucumberish
90
99
 
100
+ setup_xcfit_podfile : Creates template Podfile for the XCFit project covering all targets.
101
+
91
102
  version : prints the XCFit version
92
103
 
93
104
  <Options>
@@ -103,6 +114,8 @@ else
103
114
  print_help
104
115
  elsif cmd == 'setup_xcode_templates'
105
116
  setup_xcode_templates
117
+ elsif cmd == 'setup_xcfit_podfile'
118
+ setup_xcfit_podfile
106
119
  elsif cmd == 'version'
107
120
  puts "#{VERSION}"
108
121
  else
data/lib/XCFit/main.rb CHANGED
@@ -6,6 +6,7 @@ module XCFit
6
6
  class Main < Thor
7
7
  include Thor::Actions
8
8
  $source_dir = File.expand_path '../../..', __FILE__
9
+ $source_cocoapods_dir = File.join($source_dir, 'Cocoapods')
9
10
  $source_template_dir = File.join($source_dir, 'XCFit_Templates')
10
11
  $source_template_xcode7_dir = File.join($source_dir, 'Xcode7-Templates')
11
12
  $source_xcfit_dir = File.join($source_template_dir, 'XCFit')
@@ -24,11 +25,19 @@ module XCFit
24
25
  map %w(-v -V --version) => :version
25
26
 
26
27
 
27
- desc 'version', 'Get the current version number', :hide => true
28
+ desc 'version', 'Get the current version number', :hide => true
28
29
  def version
29
30
  say XCFit::VERSION
30
31
  end
31
32
 
33
+ desc 'setup_xcfit_podfile', 'Setup XCFit Podfile template'
34
+ def setup_xcfit_podfile
35
+ puts '=======Creating Template Podfile for the XCFit project'
36
+ puts '=======You need to replace targets with your project targets and comment unwanted targets ========'
37
+ system("curl -s -O https://raw.githubusercontent.com/Shashikant86/XCFit/master/Cocoapods/Podfile")
38
+ puts "Podfile successfully created in the current working directory here at #{Dir.getwd}/Podfile"
39
+ end
40
+
32
41
  desc 'setup_xcode_templates', 'Generate All Xcode Templates for the Gherkin Feature Files & targets for Cucumberish and Fitnesse'
33
42
  def setup_xcode_templates
34
43
  if File.exist?($root_xcfit_dir)
data/lib/XCFit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module XCFit
2
- VERSION = "4.0.4"
2
+ VERSION = "4.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcfit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.4
4
+ version: 4.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shashikant86
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-09 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -67,6 +67,7 @@ files:
67
67
  - ".travis.yml"
68
68
  - Cartfile
69
69
  - Cartfile.resolved
70
+ - Cocoapods/Podfile
70
71
  - Dangerfile
71
72
  - Gemfile
72
73
  - Gemfile.lock