cody 0.7.0 → 0.7.1

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
  SHA256:
3
- metadata.gz: 4026befb0df7ead4c4947e968b3cc889e367b447a87980b23016fcae680ed2d6
4
- data.tar.gz: 6090a0d98004b6ca2c47d4b18f34c2e0de974e7e9a6055b448ab4ac19f9ed5af
3
+ metadata.gz: ad625a79860778a09fc071a9d2ed0477840cab76406a695bfdd4d989105b70d8
4
+ data.tar.gz: '044687e64d9f121f16b3be6941c67da8d4aca15241f18d473c19d815c9456fd8'
5
5
  SHA512:
6
- metadata.gz: ee0b4aa46328c7e82a58cdb2ed85cf95fbd22e9092a4770b96975c9cef971977258370e864fc22d188d841532be11d2be20f43aea262df7f90bee48bd7264857
7
- data.tar.gz: 1a275dacb13bab8c8f0e490058501275dd6fea0eda358fa3648201e982d6e5dc48a9168dd56ed7d4473ba809cde94479f17a1a216bfd323ad0153fe5b7b47370
6
+ metadata.gz: 93bfa129e67f2c71e7fb13ea9643155ffde3ad90ba9ff09d151fa652f4e5974de065a05c4baaf82add4371ad8065c9805ee52c74fac96e5d721567fdd3c6a418
7
+ data.tar.gz: 9356282a4e1ef3c3f6cb6716f557aa81ee8638328f4708564b093f60a892db215e6d59161e0df4d8c2d1eb755e24866f9512f53cc712627f9973f02844b394a3
@@ -3,6 +3,9 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.7.1]
7
+ - fix renaming
8
+
6
9
  ## [0.7.0]
7
10
  - Rename to Cody
8
11
  - Breaking changes: .cody folder, CODY_ENV, -cody stack name suffix
@@ -18,23 +18,23 @@ module Cody
18
18
  class << self
19
19
  def dispatch(m, args, options, config)
20
20
  # Allow calling for help via:
21
- # codebuild command help
22
- # codebuild command -h
23
- # codebuild command --help
24
- # codebuild command -D
21
+ # cody command help
22
+ # cody command -h
23
+ # cody command --help
24
+ # cody command -D
25
25
  #
26
26
  # as well thor's normal way:
27
27
  #
28
- # codebuild help command
28
+ # cody help command
29
29
  help_flags = Thor::HELP_MAPPINGS + ["help"]
30
30
  if args.length > 1 && !(args & help_flags).empty?
31
31
  args -= help_flags
32
32
  args.insert(-2, "help")
33
33
  end
34
34
 
35
- # codebuild version
36
- # codebuild --version
37
- # codebuild -v
35
+ # cody version
36
+ # cody --version
37
+ # cody -v
38
38
  version_flags = ["--version", "-v"]
39
39
  if args.length == 1 && !(args & version_flags).empty?
40
40
  args = ["version"]
@@ -48,15 +48,15 @@ Fortunately, negative and positive arity values are processed the same way. So w
48
48
 
49
49
  Here are some test cases, hit TAB after typing the command:
50
50
 
51
- codebuild completion
52
- codebuild completion hello
53
- codebuild completion hello name
54
- codebuild completion hello name --
55
- codebuild completion hello name --noop
56
-
57
- codebuild completion
58
- codebuild completion sub:goodbye
59
- codebuild completion sub:goodbye name
51
+ cody completion
52
+ cody completion hello
53
+ cody completion hello name
54
+ cody completion hello name --
55
+ cody completion hello name --noop
56
+
57
+ cody completion
58
+ cody completion sub:goodbye
59
+ cody completion sub:goodbye name
60
60
 
61
61
  ## Subcommands and Thor::Group Registered Commands
62
62
 
@@ -45,12 +45,12 @@ module Cody
45
45
  end
46
46
  memoize :settings
47
47
 
48
- def check_codebuild_project!
48
+ def check_cody_project!
49
49
  check_path = "#{Cody.root}/.cody"
50
50
  unless File.exist?(check_path)
51
- puts "ERROR: No .cody folder found. Are you sure you are in a project with codebuild setup?".color(:red)
51
+ puts "ERROR: No .cody folder found. Are you sure you are in a project with cody setup?".color(:red)
52
52
  puts "Current directory: #{Dir.pwd}"
53
- puts "If you want to set up codebuild for this project, please create a settings file via: cody init"
53
+ puts "If you want to set up cody for this project, please create a settings file via: cody init"
54
54
  exit 1 unless ENV['TEST']
55
55
  end
56
56
  end
@@ -40,7 +40,7 @@ module Cody
40
40
  end
41
41
  end
42
42
 
43
- def lookup_codebuild_file(name)
43
+ def lookup_cody_file(name)
44
44
  [".cody", @options[:type], name].compact.join("/")
45
45
  end
46
46
  end
@@ -34,7 +34,7 @@ module Cody
34
34
  end
35
35
 
36
36
  def copy_top_level
37
- puts "Initialize codebuild top-level folder"
37
+ puts "Initialize .cody top-level folder"
38
38
  dest = ".cody"
39
39
  excludes = %w[.git]
40
40
  if @options[:mode] == "light"
@@ -62,11 +62,11 @@ module Cody
62
62
  end
63
63
 
64
64
  def get_project_path
65
- lookup_codebuild_file("project.rb")
65
+ lookup_cody_file("project.rb")
66
66
  end
67
67
 
68
68
  def build_spec
69
- lookup_codebuild_file("buildspec.yml")
69
+ lookup_cody_file("buildspec.yml")
70
70
  end
71
71
  end
72
72
  end
@@ -41,7 +41,7 @@ module Cody
41
41
 
42
42
  private
43
43
  def get_role_path
44
- lookup_codebuild_file("role.rb")
44
+ lookup_cody_file("role.rb")
45
45
  end
46
46
 
47
47
  def default_properties
@@ -64,7 +64,7 @@ module Cody
64
64
 
65
65
  private
66
66
  def get_schedule_path
67
- lookup_codebuild_file("schedule.rb")
67
+ lookup_cody_file("schedule.rb")
68
68
  end
69
69
 
70
70
  def events_rule_role
@@ -4,14 +4,14 @@ require 'render_me_pretty'
4
4
  module Cody
5
5
  class Setting
6
6
  extend Memoist
7
- def initialize(check_codebuild_project=true)
8
- @check_codebuild_project = check_codebuild_project
7
+ def initialize(check_cody_project=true)
8
+ @check_cody_project = check_cody_project
9
9
  end
10
10
 
11
11
  # data contains the settings.yml config. The order or precedence for settings
12
12
  # is the project ufo/settings.yml and then the ~/.cody/settings.yml.
13
13
  def data
14
- Cody.check_codebuild_project! if @check_codebuild_project
14
+ Cody.check_cody_project! if @check_cody_project
15
15
  return {} unless File.exist?(project_settings_path)
16
16
 
17
17
  # project based settings files
@@ -1,3 +1,3 @@
1
1
  module Cody
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-02 00:00:00.000000000 Z
11
+ date: 2019-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport