marmoset 1.0.1 → 1.0.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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/marmoset +49 -6
  3. metadata +9 -42
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ metadata.gz: 295e2adcf9ec3044ba669d5618a27c78a517d7e5ca44fa954868c0f707035693eb52ecda41f96cccc74bb0b59fc9697adfd301c9188137cdb47a867586ad3bb0
4
+ data.tar.gz: 5a494208ff6dedca0efa2759a53b410aa4c7bdd729b9099c84bf703b7dc7fa541437d0c95f0afc015a5d3de539a6bb1b7cf89b6488546487cea7b63568519240
5
+ SHA1:
6
+ metadata.gz: bd6e3f071089a6cd619aee41ebb3b90be0b15f2b
7
+ data.tar.gz: 0f29b8239d8a90a61967e93cced0f6eba33f6cf0
@@ -45,7 +45,7 @@ class MarmosetClient
45
45
 
46
46
  @course_index_page = @agent.submit login_submit_page.forms.first
47
47
  rescue InvalidLogin
48
- say 'Invalid Username/Password'
48
+ say 'Invalid Username/Password.'
49
49
  exit
50
50
  end
51
51
 
@@ -112,7 +112,7 @@ class MarmosetClient
112
112
  @submit_page = problem_link.click
113
113
  end
114
114
  rescue ProblemNotFound
115
- say "Problem #{@problem} could not be found in #{@course}"
115
+ say "Problem #{@problem} could not be found in #{@course}."
116
116
  say "Options are: #{problem_links.collect{|x| x[0].strip}.sort.join(', ')}"
117
117
  exit
118
118
  end
@@ -124,13 +124,56 @@ class MarmosetClient
124
124
  form = @submit_page.forms.first
125
125
  @submit_page.forms.first.file_uploads.first.file_name = @filename
126
126
  @submit_response_page = @agent.submit(form)
127
- say "Assignment submitted succesfully"
127
+ say "Assignment submitted successfully."
128
128
  rescue Mechanize::ResponseCodeError => e
129
- say "There was a problem submitting your assignment. Submit manually"
129
+ puts <<-EOF
130
+ @LGf
131
+ tClfC
132
+ @@@@G @@C
133
+ L@ il@Lt@
134
+ ;@ G@@;@tl@
135
+ @ @t .@@l
136
+ @i i@
137
+ ;f G, ......
138
+ ,@ @ :C@@@@@@@@@@@@@@C
139
+ @ C .iG@@@CttlllllllllltLG@L
140
+ ,,@,,,.@@fllllllllllllllllllllllllll@
141
+ l@@@@@@@@@flllllllllllllllllllllllllli@.
142
+ l@@f G f@LLflllllllllllllllllllllllllli@.
143
+ C@@fllllLflllllllllllllllllllllltfC@@@@@@l;
144
+ L@t@tllllLfllllllllllllllllllllllllll@ ;tL@@G
145
+ .i@@@@@@tlGtllllLflllllllllllllllllllllllllt@ f@
146
+ @@@@GC:@GllllllllLflllllllllllllllllllllllllC; G@
147
+ i@G L@fGlllllllllllllllllllllllllllllllllll@ :@
148
+ C@f @; .GlllllllllllllllllllllllllllllllllL@ @t
149
+ @f@@.tf CllLC, lCllllllllllllllllllllllt@ t@
150
+ @G@G.;C LlLllf. ftlllllllllllllllllllll@: @i
151
+ @G@f ff LlLG@@@.,Glllllllllllltlllllll@i l@
152
+ :GC@:,@. GLL@@iLi Glllllllllllt@@GCfftGL
153
+ iC:@G@; ;CGL@@.iL LllllllllllllltLG@@@@@@@t
154
+ .G .: GlCL@C if Llllllllllllllllll@LiLG@@@f
155
+ :G@@@ lLtCf@l C, Cllllllllllllllll@t .G@
156
+ ,@@@@;i@ tCltfi@ffG .Glllllllllllllll@l @G
157
+ ,@@G ,@fGLlltf tCC, lflllllllllllllt@f G@
158
+ .@f @@tlllG .GlCGtlllllllllG@i .@.
159
+ @G @@CliC; @tllL@ClllllfG@G @l
160
+ t@ i@@CtGi,i@llllitG@fLG@@G. f@
161
+ @f i@@GGGLtfLLCG@@@@@@, :@
162
+ L ,lfGGGGGGtti; i@@l @;
163
+ @@ Cf
164
+ @@ ,
165
+ GC
166
+ @@
167
+ C@
168
+ @f
169
+ @@
170
+ f@
171
+ EOF
172
+ say "There was a problem submitting your assignment. Submit manually."
130
173
  end
131
174
  end
132
175
 
133
- PROGRAM_VERSION = 1.0
176
+ PROGRAM_VERSION = 1.0.2
134
177
 
135
178
  Choice.options do
136
179
  option :username do
@@ -176,7 +219,7 @@ Choice.options do
176
219
  long '--version'
177
220
  desc 'Show Version'
178
221
  action do
179
- puts "#{File.basename(__FILE__)} Marmoset CLI v#{PROGRAM_VERSION}"
222
+ puts "#{File.basename(__FILE__)} MarmosetSubmit CLI v#{PROGRAM_VERSION}"
180
223
  exit
181
224
  end
182
225
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marmoset
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 1
10
- version: 1.0.1
4
+ version: 1.0.2
11
5
  platform: ruby
12
6
  authors:
13
7
  - Jamie Wong
@@ -15,22 +9,15 @@ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
11
 
18
- date: 2010-09-21 00:00:00 -04:00
19
- default_executable:
12
+ date: 2013-05-26 00:00:00 Z
20
13
  dependencies:
21
14
  - !ruby/object:Gem::Dependency
22
15
  name: highline
23
16
  prerelease: false
24
17
  requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
18
  requirements:
27
19
  - - ">="
28
20
  - !ruby/object:Gem::Version
29
- hash: 13
30
- segments:
31
- - 1
32
- - 6
33
- - 1
34
21
  version: 1.6.1
35
22
  type: :runtime
36
23
  version_requirements: *id001
@@ -38,15 +25,9 @@ dependencies:
38
25
  name: mechanize
39
26
  prerelease: false
40
27
  requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
28
  requirements:
43
29
  - - ">="
44
30
  - !ruby/object:Gem::Version
45
- hash: 23
46
- segments:
47
- - 1
48
- - 0
49
- - 0
50
31
  version: 1.0.0
51
32
  type: :runtime
52
33
  version_requirements: *id002
@@ -54,15 +35,9 @@ dependencies:
54
35
  name: choice
55
36
  prerelease: false
56
37
  requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
38
  requirements:
59
39
  - - ">="
60
40
  - !ruby/object:Gem::Version
61
- hash: 19
62
- segments:
63
- - 0
64
- - 1
65
- - 4
66
41
  version: 0.1.4
67
42
  type: :runtime
68
43
  version_requirements: *id003
@@ -77,39 +52,31 @@ extra_rdoc_files: []
77
52
 
78
53
  files:
79
54
  - bin/marmoset
80
- has_rdoc: true
81
55
  homepage: http://github.com/phleet/MarmosetSubmit
82
56
  licenses: []
83
57
 
58
+ metadata: {}
59
+
84
60
  post_install_message:
85
61
  rdoc_options: []
86
62
 
87
63
  require_paths:
88
64
  - lib
89
65
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
66
  requirements:
92
- - - ">="
67
+ - &id004
68
+ - ">="
93
69
  - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
70
  version: "0"
98
71
  required_rubygems_version: !ruby/object:Gem::Requirement
99
- none: false
100
72
  requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
- version: "0"
73
+ - *id004
107
74
  requirements: []
108
75
 
109
76
  rubyforge_project:
110
- rubygems_version: 1.3.7
77
+ rubygems_version: 2.0.3
111
78
  signing_key:
112
- specification_version: 3
79
+ specification_version: 4
113
80
  summary: Submit to UW Marmoset from the command line
114
81
  test_files: []
115
82