phenomenal 1.2.1 → 1.2.2

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.
@@ -32,6 +32,7 @@ class Phenomenal::Context
32
32
  else
33
33
  manager.unregister_context(self)
34
34
  self.forgotten=true
35
+ nil
35
36
  end
36
37
  end
37
38
 
@@ -76,6 +77,7 @@ class Phenomenal::Context
76
77
  def add_adaptations(&block)
77
78
  instance_eval(&block) if block
78
79
  @current_adapted_class=nil #Reset adapted class after context closed
80
+ nil
79
81
  end
80
82
 
81
83
  # Set the current adapted class for the next adapt calls
@@ -106,6 +108,7 @@ class Phenomenal::Context
106
108
 
107
109
  adaptation = adaptations.delete_at(adaptation_index)
108
110
  manager.unregister_adaptation(adaptation)
111
+ adaptation
109
112
  end
110
113
 
111
114
  # Activate the context
@@ -29,5 +29,6 @@ module Phenomenal::ConflictPolicies
29
29
  # Other one should return -1 or +1 following the resolution order
30
30
  def change_conflict_policy (&block)
31
31
  self.class.class_eval{define_method(:conflict_policy,&block)}
32
+ nil
32
33
  end
33
34
  end
@@ -38,6 +38,7 @@ module Phenomenal::FeatureRelationships
38
38
  set_relationship(r)
39
39
  end
40
40
  end
41
+ nil
41
42
  end
42
43
 
43
44
  # Refresh the references (replace symbol by actual object reference)
@@ -1,3 +1,3 @@
1
1
  module Phenomenal
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -41,6 +41,7 @@ class Phenomenal::Viewer::Graphical
41
41
  add_edges_for(context)
42
42
  end
43
43
  self.main_graph.output(:png => destination_file)
44
+ nil
44
45
  end
45
46
 
46
47
  private
metadata CHANGED
@@ -1,127 +1,125 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: phenomenal
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.2.2
4
5
  prerelease:
5
- version: 1.2.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Loic Vigneron - Thibault Poncelet
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2012-05-31 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2012-06-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rspec
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  none: false
20
- requirements:
18
+ requirements:
21
19
  - - ~>
22
- - !ruby/object:Gem::Version
23
- version: "2.5"
20
+ - !ruby/object:Gem::Version
21
+ version: '2.5'
24
22
  type: :development
25
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '2.5'
26
30
  description: A context oriented programming framework for Ruby
27
31
  email: team@phenomenal-gem.com
28
32
  executables: []
29
-
30
33
  extensions: []
31
-
32
34
  extra_rdoc_files: []
33
-
34
- files:
35
- - lib/phenomenal/error.rb
36
- - lib/phenomenal/viewer/graphical.rb
37
- - lib/phenomenal/viewer/textual.rb
38
- - lib/phenomenal/viewer/dsl.rb
35
+ files:
36
+ - lib/phenomenal/context/adaptation.rb
37
+ - lib/phenomenal/context/context.rb
38
+ - lib/phenomenal/context/context_creation.rb
39
+ - lib/phenomenal/context/feature.rb
39
40
  - lib/phenomenal/dsl.rb
40
- - lib/phenomenal/version.rb
41
+ - lib/phenomenal/error.rb
42
+ - lib/phenomenal/manager/adaptation_management.rb
43
+ - lib/phenomenal/manager/conflict_policies.rb
44
+ - lib/phenomenal/manager/context_management.rb
45
+ - lib/phenomenal/manager/manager.rb
46
+ - lib/phenomenal/relationship/context_relationships.rb
47
+ - lib/phenomenal/relationship/dsl.rb
48
+ - lib/phenomenal/relationship/feature_relationships.rb
41
49
  - lib/phenomenal/relationship/implication.rb
42
50
  - lib/phenomenal/relationship/relationship.rb
51
+ - lib/phenomenal/relationship/relationship_manager.rb
43
52
  - lib/phenomenal/relationship/relationship_store.rb
44
53
  - lib/phenomenal/relationship/requirement.rb
45
- - lib/phenomenal/relationship/dsl.rb
46
- - lib/phenomenal/relationship/relationship_manager.rb
47
- - lib/phenomenal/relationship/context_relationships.rb
48
54
  - lib/phenomenal/relationship/suggestion.rb
49
- - lib/phenomenal/relationship/feature_relationships.rb
50
- - lib/phenomenal/manager/manager.rb
51
- - lib/phenomenal/manager/adaptation_management.rb
52
- - lib/phenomenal/manager/conflict_policies.rb
53
- - lib/phenomenal/manager/context_management.rb
54
- - lib/phenomenal/context/feature.rb
55
- - lib/phenomenal/context/context.rb
56
- - lib/phenomenal/context/context_creation.rb
57
- - lib/phenomenal/context/adaptation.rb
55
+ - lib/phenomenal/version.rb
56
+ - lib/phenomenal/viewer/dsl.rb
57
+ - lib/phenomenal/viewer/graphical.rb
58
+ - lib/phenomenal/viewer/textual.rb
58
59
  - lib/phenomenal.rb
59
60
  - LICENSE
60
61
  - Rakefile
61
62
  - README.md
62
- - spec/spec_helper.rb
63
- - spec/feature_spec.rb
64
- - spec/context_spec.rb
65
- - spec/test_classes.rb
66
- - spec/manager_spec.rb
67
63
  - spec/adaptation_spec.rb
68
- - spec/relationships/relationships_store_spec.rb
69
- - spec/relationships/relationship_spec.rb
70
- - spec/relationships/feature_relationships_spec.rb
71
- - spec/relationships/dsl_spec.rb
72
- - spec/relationships/context_relationships_spec.rb
73
- - spec/relationships/relationships_manager_spec.rb
64
+ - spec/context_spec.rb
74
65
  - spec/dsl_spec.rb
75
- - spec/integration/composition_spec.rb
76
- - spec/integration/combined_contexts_spec.rb
66
+ - spec/feature_spec.rb
77
67
  - spec/integration/adaptation_spec.rb
78
- - spec/integration/open_context.rb
68
+ - spec/integration/combined_contexts_spec.rb
69
+ - spec/integration/composition_spec.rb
79
70
  - spec/integration/conflict_policy_spec.rb
71
+ - spec/integration/open_context.rb
80
72
  - spec/integration/relationships_spec.rb
73
+ - spec/manager_spec.rb
74
+ - spec/relationships/context_relationships_spec.rb
75
+ - spec/relationships/dsl_spec.rb
76
+ - spec/relationships/feature_relationships_spec.rb
77
+ - spec/relationships/relationship_spec.rb
78
+ - spec/relationships/relationships_manager_spec.rb
79
+ - spec/relationships/relationships_store_spec.rb
80
+ - spec/spec_helper.rb
81
+ - spec/test_classes.rb
81
82
  homepage: http://www.phenomenal-gem.com
82
83
  licenses: []
83
-
84
84
  post_install_message:
85
85
  rdoc_options: []
86
-
87
- require_paths:
86
+ require_paths:
88
87
  - lib
89
- required_ruby_version: !ruby/object:Gem::Requirement
88
+ required_ruby_version: !ruby/object:Gem::Requirement
90
89
  none: false
91
- requirements:
92
- - - ">="
93
- - !ruby/object:Gem::Version
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
94
93
  version: 1.9.2
95
- required_rubygems_version: !ruby/object:Gem::Requirement
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
95
  none: false
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: "0"
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
101
100
  requirements: []
102
-
103
101
  rubyforge_project:
104
- rubygems_version: 1.8.17
102
+ rubygems_version: 1.8.22
105
103
  signing_key:
106
104
  specification_version: 3
107
105
  summary: A context oriented programming framework for Ruby
108
- test_files:
109
- - spec/spec_helper.rb
110
- - spec/feature_spec.rb
111
- - spec/context_spec.rb
112
- - spec/test_classes.rb
113
- - spec/manager_spec.rb
106
+ test_files:
114
107
  - spec/adaptation_spec.rb
115
- - spec/relationships/relationships_store_spec.rb
116
- - spec/relationships/relationship_spec.rb
117
- - spec/relationships/feature_relationships_spec.rb
118
- - spec/relationships/dsl_spec.rb
119
- - spec/relationships/context_relationships_spec.rb
120
- - spec/relationships/relationships_manager_spec.rb
108
+ - spec/context_spec.rb
121
109
  - spec/dsl_spec.rb
122
- - spec/integration/composition_spec.rb
123
- - spec/integration/combined_contexts_spec.rb
110
+ - spec/feature_spec.rb
124
111
  - spec/integration/adaptation_spec.rb
125
- - spec/integration/open_context.rb
112
+ - spec/integration/combined_contexts_spec.rb
113
+ - spec/integration/composition_spec.rb
126
114
  - spec/integration/conflict_policy_spec.rb
115
+ - spec/integration/open_context.rb
127
116
  - spec/integration/relationships_spec.rb
117
+ - spec/manager_spec.rb
118
+ - spec/relationships/context_relationships_spec.rb
119
+ - spec/relationships/dsl_spec.rb
120
+ - spec/relationships/feature_relationships_spec.rb
121
+ - spec/relationships/relationship_spec.rb
122
+ - spec/relationships/relationships_manager_spec.rb
123
+ - spec/relationships/relationships_store_spec.rb
124
+ - spec/spec_helper.rb
125
+ - spec/test_classes.rb