trema 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ data.tar.gz: d3850c53230afbfcb3d7a8782c86f462ed944e9ab7be2147b8ba4eafb0d5156a6ec1bca29d82b05bd14031cc10efb08eedbb0f04ac4263203d0d275101fbec78
4
+ metadata.gz: 13dfcef0ae4245fc63c35cb32379431e8d71f92a455d349ed63d3307ab8ee7c34734a54537a9e9749ca7bd3b6b2bdf4b186257c3d4f8198552e31e5961c04ab1
5
+ SHA1:
6
+ data.tar.gz: f69593a5a3dd91e192bae4b0134220e6b723a1a7
7
+ metadata.gz: 0fba34c5a5378885651c99a5c928e28f04de1e0b
data/Gemfile CHANGED
@@ -22,7 +22,7 @@ group :development do
22
22
  gem "reek", "~> 1.3.1"
23
23
  gem "relish", "~> 0.6"
24
24
  gem "rspec", "~> 2.13.0"
25
- gem "yard", "~> 0.8.5"
25
+ gem "yard", "~> 0.8.5.2"
26
26
  end
27
27
 
28
28
 
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  Welcome to Trema
2
2
  ================
3
3
 
4
+ [![Build Status](https://secure.travis-ci.org/trema/trema.png?branch=develop)](http://travis-ci.org/trema/trema)
5
+ [![Code Climate](https://codeclimate.com/github/trema/trema.png)](https://codeclimate.com/github/trema/trema)
6
+ [![Dependency Status](https://gemnasium.com/trema/trema.png)](https://gemnasium.com/trema/trema)
7
+
4
8
  Trema is a OpenFlow controller framework that includes everything
5
9
  needed to create OpenFlow controllers in Ruby and C.
6
10
 
@@ -251,14 +255,6 @@ of contributors including their patches can be found at:
251
255
  https://github.com/trema/trema/contributors
252
256
 
253
257
 
254
- Project Status
255
- --------------
256
-
257
- * Build Status [![Build Status](https://secure.travis-ci.org/trema/trema.png?branch=develop)](http://travis-ci.org/trema/trema)
258
- * Dependency Status [![Dependency Status](https://gemnasium.com/trema/trema.png)](https://gemnasium.com/trema/trema)
259
- * Code Quality [![Code Climate](https://codeclimate.com/github/trema/trema.png)](https://codeclimate.com/github/trema/trema)
260
-
261
-
262
258
  License
263
259
  -------
264
260
 
@@ -618,10 +618,9 @@ controller_start_trema( VALUE self ) {
618
618
  }
619
619
 
620
620
 
621
- /********************************************************************************
622
- * Init Controller module.
623
- ********************************************************************************/
624
-
621
+ /*
622
+ * Document-class: Trema::Controller
623
+ */
625
624
  void
626
625
  Init_controller() {
627
626
  rb_require( "trema/enqueue" );
@@ -641,7 +640,7 @@ Init_controller() {
641
640
  rb_require( "trema/app" );
642
641
 
643
642
  VALUE cApp = rb_eval_string( "Trema::App" );
644
- mTrema = rb_define_module( "Trema" );
643
+ mTrema = rb_eval_string( "Trema" );
645
644
  cController = rb_define_class_under( mTrema, "Controller", cApp );
646
645
 
647
646
  rb_define_const( cController, "OFPP_MAX", INT2NUM( OFPP_MAX ) );
@@ -193,9 +193,12 @@ error_code( VALUE self ) {
193
193
  }
194
194
 
195
195
 
196
+ /*
197
+ * Document-class: Trema::Error
198
+ */
196
199
  void
197
200
  Init_error() {
198
- mTrema = rb_define_module( "Trema" );
201
+ mTrema = rb_eval_string( "Trema" );
199
202
  rb_define_const( mTrema, "OFPET_HELLO_FAILED", INT2NUM( OFPET_HELLO_FAILED ) );
200
203
  rb_define_const( mTrema, "OFPHFC_INCOMPATIBLE", INT2NUM( OFPHFC_INCOMPATIBLE ) );
201
204
  rb_define_const( mTrema, "OFPHFC_EPERM", INT2NUM( OFPHFC_EPERM ) );
@@ -222,9 +222,12 @@ features_reply_physical_ports( VALUE self ) {
222
222
  }
223
223
 
224
224
 
225
+ /*
226
+ * Document-class: Trema::FeaturesReply
227
+ */
225
228
  void
226
229
  Init_features_reply() {
227
- mTrema = rb_define_module( "Trema" );
230
+ mTrema = rb_eval_string( "Trema" );
228
231
  cFeaturesReply = rb_define_class_under( mTrema, "FeaturesReply", rb_cObject );
229
232
  rb_define_alloc_func( cFeaturesReply, features_reply_alloc );
230
233
  rb_define_method( cFeaturesReply, "initialize", features_reply_init, 1 );
@@ -218,9 +218,12 @@ flow_removed_byte_count( VALUE self ) {
218
218
  }
219
219
 
220
220
 
221
+ /*
222
+ * Document-class: Trema::FlowRemoved
223
+ */
221
224
  void
222
225
  Init_flow_removed() {
223
- mTrema = rb_define_module( "Trema" );
226
+ mTrema = rb_eval_string( "Trema" );
224
227
  cFlowRemoved = rb_define_class_under( mTrema, "FlowRemoved", rb_cObject );
225
228
  rb_define_const( cFlowRemoved, "OFPRR_IDLE_TIMEOUT", INT2NUM( OFPRR_IDLE_TIMEOUT ) );
226
229
  rb_define_const( cFlowRemoved, "OFPRR_HARD_TIMEOUT", INT2NUM( OFPRR_HARD_TIMEOUT ) );
@@ -560,9 +560,12 @@ match_init( int argc, VALUE *argv, VALUE self ) {
560
560
  }
561
561
 
562
562
 
563
+ /*
564
+ * Document-class: Trema::Match
565
+ */
563
566
  void
564
567
  Init_match() {
565
- mTrema = rb_define_module( "Trema" );
568
+ mTrema = rb_eval_string( "Trema" );
566
569
  cMatch = rb_define_class_under( mTrema, "Match", rb_cObject );
567
570
  rb_define_alloc_func( cMatch, match_alloc );
568
571
  rb_define_const( cMatch, "OFPFW_IN_PORT", INT2NUM( OFPFW_IN_PORT ) );
@@ -125,9 +125,12 @@ openflow_error_data( VALUE self ) {
125
125
  }
126
126
 
127
127
 
128
+ /*
129
+ * Document-class: Trema::OpenflowError
130
+ */
128
131
  void
129
132
  Init_openflow_error() {
130
- mTrema = rb_define_module( "Trema" );
133
+ mTrema = rb_eval_string( "Trema" );
131
134
  cOpenflowError = rb_define_class_under( mTrema, "OpenflowError", rb_cObject );
132
135
  rb_define_method( cOpenflowError, "initialize", openflow_error_init, 1 );
133
136
  rb_define_method( cOpenflowError, "datapath_id", openflow_error_datapath_id, 0 );
@@ -1092,11 +1092,14 @@ packet_in_udp_checksum( VALUE self ) {
1092
1092
  }
1093
1093
 
1094
1094
 
1095
+ /*
1096
+ * Document-class: Trema::PacketIn
1097
+ */
1095
1098
  void
1096
1099
  Init_packet_in() {
1097
1100
  rb_require( "trema/ip" );
1098
1101
  rb_require( "trema/mac" );
1099
- mTrema = rb_define_module( "Trema" );
1102
+ mTrema = rb_eval_string( "Trema" );
1100
1103
  cPacketIn = rb_define_class_under( mTrema, "PacketIn", rb_cObject );
1101
1104
  rb_define_alloc_func( cPacketIn, packet_in_alloc );
1102
1105
 
@@ -203,9 +203,12 @@ port_mod_advertise( VALUE self ) {
203
203
  }
204
204
 
205
205
 
206
+ /*
207
+ * Document-class: Trema::PortMod
208
+ */
206
209
  void
207
210
  Init_port_mod() {
208
- mTrema = rb_define_module( "Trema" );
211
+ mTrema = rb_eval_string( "Trema" );
209
212
  cPortMod = rb_define_class_under( mTrema, "PortMod", rb_cObject );
210
213
  rb_define_alloc_func( cPortMod, port_mod_alloc );
211
214
  rb_define_method( cPortMod, "initialize", port_mod_init, -1 );
@@ -118,9 +118,12 @@ port_status_phy_port( VALUE self ) {
118
118
  }
119
119
 
120
120
 
121
+ /*
122
+ * Document-class: Trema::PortStatus
123
+ */
121
124
  void
122
125
  Init_port_status() {
123
- mTrema = rb_define_module( "Trema" );
126
+ mTrema = rb_eval_string( "Trema" );
124
127
  cPortStatus = rb_define_class_under( mTrema, "PortStatus", rb_cObject );
125
128
 
126
129
  rb_define_const( cPortStatus, "OFPPR_ADD", INT2NUM( OFPPR_ADD ) );
@@ -296,9 +296,12 @@ port_compare( VALUE self, VALUE other ) {
296
296
  }
297
297
 
298
298
 
299
+ /*
300
+ * Document-class: Trema::Port
301
+ */
299
302
  void
300
303
  Init_port() {
301
- mTrema = rb_define_module( "Trema" );
304
+ mTrema = rb_eval_string( "Trema" );
302
305
  cPort = rb_define_class_under( mTrema, "Port", rb_cObject );
303
306
 
304
307
  rb_define_const( cPort, "OFPPC_PORT_DOWN", INT2NUM( OFPPC_PORT_DOWN ) );
@@ -109,10 +109,13 @@ queue_get_config_reply_queues( VALUE self ) {
109
109
  }
110
110
 
111
111
 
112
+ /*
113
+ * Document-class: Trema::QueueGetConfigReply
114
+ */
112
115
  void
113
116
  Init_queue_get_config_reply() {
114
117
  rb_require( "trema/packet-queue" );
115
- mTrema = rb_define_module( "Trema" );
118
+ mTrema = rb_eval_string( "Trema" );
116
119
  cQueueGetConfigReply = rb_define_class_under( mTrema, "QueueGetConfigReply", rb_cObject );
117
120
  rb_define_method( cQueueGetConfigReply, "initialize", queue_get_config_reply_init, 1 );
118
121
  rb_define_method( cQueueGetConfigReply, "datapath_id", queue_get_config_reply_datapath_id, 0 );
@@ -145,9 +145,12 @@ set_config_miss_send_len( VALUE self ) {
145
145
  }
146
146
 
147
147
 
148
+ /*
149
+ * Document-class: Trema::SetConfig
150
+ */
148
151
  void
149
152
  Init_set_config() {
150
- mTrema = rb_define_module( "Trema" );
153
+ mTrema = rb_eval_string( "Trema" );
151
154
  cSetConfig = rb_define_class_under( mTrema, "SetConfig", rb_cObject );
152
155
  rb_define_alloc_func( cSetConfig, set_config_alloc );
153
156
  rb_define_const( cSetConfig, "OFPC_FRAG_NORMAL", INT2NUM( OFPC_FRAG_NORMAL ) );
@@ -139,6 +139,9 @@ stats_reply_stats( VALUE self ) {
139
139
  }
140
140
 
141
141
 
142
+ /*
143
+ * Document-class: Trema::StatsReply
144
+ */
142
145
  void
143
146
  Init_stats_reply() {
144
147
  rb_require( "trema/desc-stats-reply" );
@@ -148,7 +151,7 @@ Init_stats_reply() {
148
151
  rb_require( "trema/port-stats-reply" );
149
152
  rb_require( "trema/queue-stats-reply" );
150
153
  rb_require( "trema/vendor-stats-reply" );
151
- mTrema = rb_define_module( "Trema" );
154
+ mTrema = rb_eval_string( "Trema" );
152
155
  cStatsReply = rb_define_class_under( mTrema, "StatsReply", rb_cObject );
153
156
  rb_define_const( cStatsReply, "OFPST_DESC", INT2NUM( OFPST_DESC ) );
154
157
  rb_define_const( cStatsReply, "OFPST_FLOW", INT2NUM( OFPST_FLOW ) );
@@ -614,9 +614,19 @@ vendor_stats_request_init( int argc, VALUE *argv, VALUE self ) {
614
614
  }
615
615
 
616
616
 
617
+ /*
618
+ * Document-class: Trema::StatsRequest
619
+ * Document-class: Trema::DescStatsRequest
620
+ * Document-class: Trema::FlowStatsRequest
621
+ * Document-class: Trema::AggregateStatsRequest
622
+ * Document-class: Trema::TableStatsRequest
623
+ * Document-class: Trema::PortStatsRequest
624
+ * Document-class: Trema::QueueStatsRequest
625
+ * Document-class: Trema::VendorStatsRequest
626
+ */
617
627
  void
618
628
  Init_stats_request() {
619
- mTrema = rb_define_module( "Trema" );
629
+ mTrema = rb_eval_string( "Trema" );
620
630
  cStatsRequest = rb_define_class_under( mTrema, "StatsRequest", rb_cObject );
621
631
 
622
632
  cDescStatsRequest = rb_define_class_under( mTrema, "DescStatsRequest", cStatsRequest );
@@ -172,13 +172,12 @@ switch_start_chibach( VALUE self ) {
172
172
  }
173
173
 
174
174
 
175
- /********************************************************************************
176
- * Init Switch module.
177
- ********************************************************************************/
178
-
175
+ /*
176
+ * Document-class: Trema::Switch
177
+ */
179
178
  void
180
179
  Init_switch() {
181
- mTrema = rb_define_module( "Trema" );
180
+ mTrema = rb_eval_string( "Trema" );
182
181
  cSwitch = rb_define_class_under( mTrema, "Switch", rb_cObject );
183
182
  rb_include_module( cSwitch, mDefaultLogger );
184
183
 
@@ -175,9 +175,12 @@ vendor_data( VALUE self ) {
175
175
  }
176
176
 
177
177
 
178
+ /*
179
+ * Document-class: Trema::Vendor
180
+ */
178
181
  void
179
182
  Init_vendor() {
180
- mTrema = rb_define_module( "Trema" );
183
+ mTrema = rb_eval_string( "Trema" );
181
184
  cVendor = rb_define_class_under( mTrema, "Vendor", rb_cObject );
182
185
  rb_define_alloc_func( cVendor, vendor_alloc );
183
186
  rb_define_method( cVendor, "initialize", vendor_init, -1 );
@@ -17,7 +17,7 @@
17
17
 
18
18
 
19
19
  module Trema
20
- VERSION = "0.3.15"
20
+ VERSION = "0.3.16"
21
21
  end
22
22
 
23
23
 
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trema
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
6
- segments:
7
- - 0
8
- - 3
9
- - 15
10
- version: 0.3.15
4
+ version: 0.3.16
11
5
  platform: ruby
12
6
  authors:
13
7
  - Yasuhito Takamiya
@@ -15,70 +9,49 @@ autorequire:
15
9
  bindir: .
16
10
  cert_chain: []
17
11
 
18
- date: 2013-03-04 00:00:00 Z
12
+ date: 2013-03-05 00:00:00 Z
19
13
  dependencies:
20
14
  - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
- none: false
15
+ name: bundler
16
+ type: :runtime
17
+ requirement: &id001 !ruby/object:Gem::Requirement
23
18
  requirements:
24
- - - ">="
19
+ - &id005
20
+ - ">="
25
21
  - !ruby/object:Gem::Version
26
- hash: 3
27
- segments:
28
- - 0
29
22
  version: "0"
30
- name: bundler
31
23
  prerelease: false
32
- type: :runtime
33
- requirement: *id001
24
+ version_requirements: *id001
34
25
  - !ruby/object:Gem::Dependency
35
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
- none: false
26
+ name: gli
27
+ type: :runtime
28
+ requirement: &id002 !ruby/object:Gem::Requirement
37
29
  requirements:
38
30
  - - ~>
39
31
  - !ruby/object:Gem::Version
40
- hash: 19
41
- segments:
42
- - 2
43
- - 5
44
- - 4
45
32
  version: 2.5.4
46
- name: gli
47
33
  prerelease: false
48
- type: :runtime
49
- requirement: *id002
34
+ version_requirements: *id002
50
35
  - !ruby/object:Gem::Dependency
51
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
- none: false
36
+ name: rake
37
+ type: :runtime
38
+ requirement: &id003 !ruby/object:Gem::Requirement
53
39
  requirements:
54
40
  - - ~>
55
41
  - !ruby/object:Gem::Version
56
- hash: 73
57
- segments:
58
- - 10
59
- - 0
60
- - 3
61
42
  version: 10.0.3
62
- name: rake
63
43
  prerelease: false
64
- type: :runtime
65
- requirement: *id003
44
+ version_requirements: *id003
66
45
  - !ruby/object:Gem::Dependency
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
- none: false
46
+ name: rdoc
47
+ type: :runtime
48
+ requirement: &id004 !ruby/object:Gem::Requirement
69
49
  requirements:
70
50
  - - ~>
71
51
  - !ruby/object:Gem::Version
72
- hash: 63
73
- segments:
74
- - 4
75
- - 0
76
- - 0
77
52
  version: 4.0.0
78
- name: rdoc
79
53
  prerelease: false
80
- type: :runtime
81
- requirement: *id004
54
+ version_requirements: *id004
82
55
  description: Trema is a full-stack, easy-to-use framework for developing OpenFlow controllers in Ruby and C.
83
56
  email:
84
57
  - yasuhito@gmail.com
@@ -758,37 +731,27 @@ files:
758
731
  homepage: http://github.com/trema/trema
759
732
  licenses:
760
733
  - GPL2
734
+ metadata: {}
735
+
761
736
  post_install_message:
762
737
  rdoc_options: []
763
738
 
764
739
  require_paths:
765
740
  - ruby
766
741
  required_ruby_version: !ruby/object:Gem::Requirement
767
- none: false
768
742
  requirements:
769
743
  - - ~>
770
744
  - !ruby/object:Gem::Version
771
- hash: 57
772
- segments:
773
- - 1
774
- - 8
775
- - 7
776
745
  version: 1.8.7
777
746
  required_rubygems_version: !ruby/object:Gem::Requirement
778
- none: false
779
747
  requirements:
780
- - - ">="
781
- - !ruby/object:Gem::Version
782
- hash: 3
783
- segments:
784
- - 0
785
- version: "0"
748
+ - *id005
786
749
  requirements: []
787
750
 
788
751
  rubyforge_project:
789
- rubygems_version: 1.8.25
752
+ rubygems_version: 2.0.0
790
753
  signing_key:
791
- specification_version: 3
754
+ specification_version: 4
792
755
  summary: Full-stack OpenFlow framework.
793
756
  test_files: []
794
757