redsafe 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/GemcutterInstructions.rdoc +74 -0
- data/lib/models/scarlet_letters.rb +2 -2
- data/lib/redsafe/version.rb +1 -1
- metadata +3 -2
@@ -0,0 +1,74 @@
|
|
1
|
+
= RedSafe Gemcutter Setup
|
2
|
+
|
3
|
+
Gem Cutter set up was more time consuming than I had anticipated. Realized that I needed: task "default" => ["test"] inside the Rakefile to have rake command work for me. Additionally, I needed to use: gem cert before I could upload to Gemcutter.
|
4
|
+
|
5
|
+
== Notes on the Red Safe Gem Creation
|
6
|
+
|
7
|
+
* 1) rake
|
8
|
+
(Needed to set a default for the task.)
|
9
|
+
|
10
|
+
Added default task to Rakefile
|
11
|
+
task "default" => ["test"]
|
12
|
+
|
13
|
+
* 2) rake gemspec
|
14
|
+
(Worked for me first time.)
|
15
|
+
|
16
|
+
Generated: redsafe.gemspec
|
17
|
+
redsafe.gemspec is valid.
|
18
|
+
|
19
|
+
* 3) rdoc
|
20
|
+
(Created documentation for the redsafe project.)
|
21
|
+
|
22
|
+
redsafe.rb: mm.m.......c...
|
23
|
+
sl_user.rb: c.....cc....
|
24
|
+
sl_aah.rb: m.m.....m..
|
25
|
+
scarlet_letters.rb: c........
|
26
|
+
version.rb: cm
|
27
|
+
Generating HTML...
|
28
|
+
|
29
|
+
Files: 5
|
30
|
+
Classes: 6
|
31
|
+
Modules: 7
|
32
|
+
Methods: 36
|
33
|
+
Elapsed: 0.593s
|
34
|
+
|
35
|
+
* 4) gem build redsafe.gemspec
|
36
|
+
(Was able to build after I took author name "Ruby Shot" from an array structure and turned it into a string by removing the brackets, [ ].
|
37
|
+
|
38
|
+
# gem build redsafe.gemspec
|
39
|
+
ERROR: While executing gem ... (Gem::InvalidSpecificationException)
|
40
|
+
authors must be Array of Strings
|
41
|
+
|
42
|
+
|
43
|
+
* 5) gem push redsafe.gem
|
44
|
+
(As mentioned above, the gem certification was not set. Thus, I couldn't get an upload to Gemcutter.)
|
45
|
+
|
46
|
+
Your api key has been stored in ~/.gem/credentials
|
47
|
+
Pushing gem to Gemcutter...
|
48
|
+
ERROR: While executing gem ... (Errno::ENOENT)
|
49
|
+
No such file or directory - redsafe.gem
|
50
|
+
|
51
|
+
|
52
|
+
* 6) gem cert --build you@yourmail.com
|
53
|
+
(Use this command to create the certification for Gemcutter. I used my email address. I also moved the Public Cert and the Private Key to a safer location.)
|
54
|
+
|
55
|
+
Public Cert: gem-public_cert.pem
|
56
|
+
Private Key: gem-private_key.pem
|
57
|
+
Don't forget to move the key file to somewhere private...
|
58
|
+
|
59
|
+
|
60
|
+
* 7)gem push redsafe-0.1.1.gem
|
61
|
+
(I was successful when I used the above command. Used the Gemcutter search and verified that redsafe was being hosted on Gemcutter. Didn't test it, but left it in place.)
|
62
|
+
|
63
|
+
Pushing gem to Gemcutter...
|
64
|
+
Successfully registered gem: redsafe (0.1.1)
|
65
|
+
|
66
|
+
== Copyright
|
67
|
+
|
68
|
+
Copyright (c) 2010 Ruby Shot. See LICENSE for details.
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
@@ -52,10 +52,10 @@ class User
|
|
52
52
|
#3. resist: receives the desist string and reviews its integrity
|
53
53
|
|
54
54
|
def self.sist
|
55
|
-
TIME_FMT = '%Y-%m-%dT%H:%M:%SZ'
|
55
|
+
#:TIME_FMT = '%Y-%m-%dT%H:%M:%SZ'
|
56
56
|
junk = self.random_string(6)
|
57
57
|
t = Time.now.getutc
|
58
|
-
time_str = t.strftime(
|
58
|
+
time_str = t.strftime(%Y-%m-%dT%H:%M:%SZ)
|
59
59
|
the_sist_str = time_str + junk
|
60
60
|
return the_sist_str
|
61
61
|
end
|
data/lib/redsafe/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redsafe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruby Shot
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02-
|
12
|
+
date: 2010-02-12 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -84,6 +84,7 @@ extra_rdoc_files:
|
|
84
84
|
files:
|
85
85
|
- .document
|
86
86
|
- .gitignore
|
87
|
+
- GemcutterInstructions.rdoc
|
87
88
|
- LICENSE
|
88
89
|
- README.rdoc
|
89
90
|
- Rakefile
|