clavem 1.0.2 → 1.0.3

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/doc/Clavem.html CHANGED
@@ -120,7 +120,7 @@
120
120
  </div>
121
121
 
122
122
  <div id="footer">
123
- Generated on Sun Jan 27 14:14:59 2013 by
123
+ Generated on Sun Jan 27 17:32:23 2013 by
124
124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
125
  0.8.3 (ruby-1.9.3).
126
126
  </div>
@@ -741,20 +741,24 @@
741
741
  94
742
742
  95
743
743
  96
744
- 97</pre>
744
+ 97
745
+ 98
746
+ 99</pre>
745
747
  </td>
746
748
  <td>
747
749
  <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 80</span>
748
750
 
749
751
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_ip'>ip</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>127.0.0.1</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='int'>2501</span><span class='comma'>,</span> <span class='id identifier rubyid_command'>command</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_title'>title</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_template'>template</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_timeout'>timeout</span> <span class='op'>=</span> <span class='int'>0</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_response_handler'>response_handler</span><span class='rparen'>)</span>
750
- <span class='ivar'>@ip</span> <span class='op'>=</span> <span class='id identifier rubyid_ip'>ip</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_ip'>ip</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>127.0.0.1</span><span class='tstring_end'>&quot;</span></span>
751
- <span class='ivar'>@port</span> <span class='op'>=</span> <span class='id identifier rubyid_port'>port</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span> <span class='op'>&lt;</span> <span class='int'>1</span> <span class='op'>?</span> <span class='int'>2501</span> <span class='op'>:</span> <span class='id identifier rubyid_port'>port</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span>
752
- <span class='ivar'>@command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>open \&quot;{{URL}}\&quot;</span><span class='tstring_end'>&quot;</span></span>
753
- <span class='ivar'>@title</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_title'>title</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span> <span class='op'>:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Clavem Authorization</span><span class='tstring_end'>&quot;</span></span>
754
- <span class='ivar'>@template</span> <span class='op'>=</span> <span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>?</span> <span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span> <span class='op'>:</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='kw'>__FILE__</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/template.html.erb</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
755
- <span class='ivar'>@timeout</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_timeout'>timeout</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span>
752
+ <span class='ivar'>@ip</span> <span class='op'>=</span> <span class='id identifier rubyid_ip'>ip</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
753
+ <span class='ivar'>@port</span> <span class='op'>=</span> <span class='id identifier rubyid_port'>port</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span>
754
+ <span class='ivar'>@command</span> <span class='op'>=</span> <span class='id identifier rubyid_command'>command</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
755
+ <span class='ivar'>@title</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
756
+ <span class='ivar'>@template</span> <span class='op'>=</span> <span class='id identifier rubyid_template'>template</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
757
+ <span class='ivar'>@timeout</span> <span class='op'>=</span> <span class='id identifier rubyid_timeout'>timeout</span><span class='period'>.</span><span class='id identifier rubyid_to_integer'>to_integer</span>
756
758
  <span class='ivar'>@response_handler</span> <span class='op'>=</span> <span class='id identifier rubyid_response_handler'>response_handler</span>
757
759
 
760
+ <span class='id identifier rubyid_sanitize_arguments'>sanitize_arguments</span>
761
+
758
762
  <span class='ivar'>@token</span> <span class='op'>=</span> <span class='kw'>nil</span>
759
763
  <span class='ivar'>@status</span> <span class='op'>=</span> <span class='symbol'>:waiting</span>
760
764
  <span class='ivar'>@compiled_template</span> <span class='op'>||=</span> <span class='op'>::</span><span class='const'>ERB</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@template</span><span class='rparen'>)</span>
@@ -1734,8 +1738,6 @@
1734
1738
  <pre class="lines">
1735
1739
 
1736
1740
 
1737
- 103
1738
- 104
1739
1741
  105
1740
1742
  106
1741
1743
  107
@@ -1761,10 +1763,12 @@
1761
1763
  127
1762
1764
  128
1763
1765
  129
1764
- 130</pre>
1766
+ 130
1767
+ 131
1768
+ 132</pre>
1765
1769
  </td>
1766
1770
  <td>
1767
- <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 103</span>
1771
+ <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 105</span>
1768
1772
 
1769
1773
  <span class='kw'>def</span> <span class='id identifier rubyid_authorize'>authorize</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
1770
1774
  <span class='ivar'>@url</span> <span class='op'>=</span> <span class='id identifier rubyid_url'>url</span>
@@ -1841,12 +1845,12 @@
1841
1845
  <pre class="lines">
1842
1846
 
1843
1847
 
1844
- 135
1845
- 136
1846
- 137</pre>
1848
+ 137
1849
+ 138
1850
+ 139</pre>
1847
1851
  </td>
1848
1852
  <td>
1849
- <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 135</span>
1853
+ <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 137</span>
1850
1854
 
1851
1855
  <span class='kw'>def</span> <span class='id identifier rubyid_callback_url'>callback_url</span>
1852
1856
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>http://</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ip'>ip</span><span class='rbrace'>}</span><span class='tstring_content'>:</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_port'>port</span><span class='rbrace'>}</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span>
@@ -1947,12 +1951,12 @@
1947
1951
  <pre class="lines">
1948
1952
 
1949
1953
 
1950
- 145
1951
- 146
1952
- 147</pre>
1954
+ 147
1955
+ 148
1956
+ 149</pre>
1953
1957
  </td>
1954
1958
  <td>
1955
- <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 145</span>
1959
+ <pre class="code"><span class="info file"># File 'lib/clavem/authorizer.rb', line 147</span>
1956
1960
 
1957
1961
  <span class='kw'>def</span> <span class='id identifier rubyid_default_response_handler'>default_response_handler</span><span class='lparen'>(</span><span class='id identifier rubyid_authorizer'>authorizer</span><span class='comma'>,</span> <span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_response'>response</span><span class='rparen'>)</span>
1958
1962
  <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_query'>query</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>oauth_token</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span>
@@ -1967,7 +1971,7 @@
1967
1971
  </div>
1968
1972
 
1969
1973
  <div id="footer">
1970
- Generated on Sun Jan 27 14:14:59 2013 by
1974
+ Generated on Sun Jan 27 17:32:23 2013 by
1971
1975
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1972
1976
  0.8.3 (ruby-1.9.3).
1973
1977
  </div>
@@ -116,7 +116,7 @@
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Sun Jan 27 14:14:59 2013 by
119
+ Generated on Sun Jan 27 17:32:23 2013 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.8.3 (ruby-1.9.3).
122
122
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Jan 27 14:14:59 2013 by
127
+ Generated on Sun Jan 27 17:32:23 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.3 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Jan 27 14:14:59 2013 by
127
+ Generated on Sun Jan 27 17:32:23 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.3 (ruby-1.9.3).
130
130
  </div>
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Sun Jan 27 14:14:59 2013 by
127
+ Generated on Sun Jan 27 17:32:23 2013 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.8.3 (ruby-1.9.3).
130
130
  </div>
@@ -149,7 +149,7 @@
149
149
 
150
150
  </div>
151
151
  </dt>
152
- <dd><pre class="code"><span class='int'>0</span></pre></dd>
152
+ <dd><pre class="code"><span class='int'>3</span></pre></dd>
153
153
 
154
154
  <dt id="STRING-constant" class="">STRING =
155
155
  <div class="docstring">
@@ -180,7 +180,7 @@
180
180
  </div>
181
181
 
182
182
  <div id="footer">
183
- Generated on Sun Jan 27 14:14:59 2013 by
183
+ Generated on Sun Jan 27 17:32:23 2013 by
184
184
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
185
  0.8.3 (ruby-1.9.3).
186
186
  </div>
data/doc/_index.html CHANGED
@@ -183,7 +183,7 @@
183
183
  </div>
184
184
 
185
185
  <div id="footer">
186
- Generated on Sun Jan 27 14:14:59 2013 by
186
+ Generated on Sun Jan 27 17:32:23 2013 by
187
187
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
188
188
  0.8.3 (ruby-1.9.3).
189
189
  </div>
data/doc/file.README.html CHANGED
@@ -123,7 +123,7 @@
123
123
  </div></div>
124
124
 
125
125
  <div id="footer">
126
- Generated on Sun Jan 27 14:14:59 2013 by
126
+ Generated on Sun Jan 27 17:32:23 2013 by
127
127
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
128
  0.8.3 (ruby-1.9.3).
129
129
  </div>
data/doc/index.html CHANGED
@@ -123,7 +123,7 @@
123
123
  </div></div>
124
124
 
125
125
  <div id="footer">
126
- Generated on Sun Jan 27 14:14:59 2013 by
126
+ Generated on Sun Jan 27 17:32:23 2013 by
127
127
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
128
  0.8.3 (ruby-1.9.3).
129
129
  </div>
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Sun Jan 27 14:14:59 2013 by
106
+ Generated on Sun Jan 27 17:32:23 2013 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.8.3 (ruby-1.9.3).
109
109
  </div>
@@ -16,7 +16,7 @@ module Clavem
16
16
  MINOR = 0
17
17
 
18
18
  # The patch version.
19
- PATCH = 2
19
+ PATCH = 3
20
20
 
21
21
  # The current version of clavem.
22
22
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clavem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: