api_recipes 3.0.0.beta2 → 3.0.0.beta3

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.
data/lib/api_recipes.rb CHANGED
@@ -8,8 +8,11 @@ require 'api_recipes/internals/credential'
8
8
  require 'api_recipes/internals/level'
9
9
  require 'api_recipes/internals/path_template'
10
10
  require 'api_recipes/internals/template'
11
+ require 'api_recipes/internals/plain_yaml'
11
12
  require 'api_recipes/internals/definition'
12
13
  require 'api_recipes/internals/compiler'
14
+ require 'api_recipes/internals/recipe'
15
+ require 'api_recipes/internals/recipe_lock'
13
16
  require 'api_recipes/internals/context'
14
17
  require 'api_recipes/internals/request'
15
18
  require 'api_recipes/response'
@@ -40,7 +43,7 @@ module ApiRecipes
40
43
 
41
44
  draft = configuration.dup
42
45
  yield draft
43
- Internals::Registry.install(draft) { @configuration = draft }
46
+ Internals::Registry.install(draft) { @configuration = draft.close_draft }
44
47
  nil
45
48
  end
46
49
 
@@ -56,8 +59,9 @@ module ApiRecipes
56
59
 
57
60
  def self.apis = Internals::Registry.current.apis
58
61
 
59
- # Removes the global apis and their methods, the configuration and every
60
- # credential and variable value.
62
+ # Removes the global apis and their methods, the configuration, the values
63
+ # of the application and those assigned to objects. What a class gives to
64
+ # `api` is part of its code and stays.
61
65
  def self.reset!
62
66
  Internals::Registry.reset! { @configuration = nil }
63
67
  nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta2
4
+ version: 3.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Verlato
@@ -63,6 +63,10 @@ files:
63
63
  - lib/api_recipes/cli/import/server.rb
64
64
  - lib/api_recipes/cli/import/tree.rb
65
65
  - lib/api_recipes/cli/import/writer.rb
66
+ - lib/api_recipes/cli/recipes.rb
67
+ - lib/api_recipes/cli/recipes/git.rb
68
+ - lib/api_recipes/cli/recipes/lock_file.rb
69
+ - lib/api_recipes/cli/recipes/summary.rb
66
70
  - lib/api_recipes/cli/routes.rb
67
71
  - lib/api_recipes/cli/upgrade.rb
68
72
  - lib/api_recipes/configuration.rb
@@ -76,6 +80,9 @@ files:
76
80
  - lib/api_recipes/internals/handles.rb
77
81
  - lib/api_recipes/internals/level.rb
78
82
  - lib/api_recipes/internals/path_template.rb
83
+ - lib/api_recipes/internals/plain_yaml.rb
84
+ - lib/api_recipes/internals/recipe.rb
85
+ - lib/api_recipes/internals/recipe_lock.rb
79
86
  - lib/api_recipes/internals/registry.rb
80
87
  - lib/api_recipes/internals/request.rb
81
88
  - lib/api_recipes/internals/template.rb