sendln 0.0.2 → 0.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.
Files changed (6) hide show
  1. data/README.rdoc +29 -0
  2. data/bin/sendln +1 -1
  3. data/lib/sendln.rb +2 -2
  4. data/lib/version.rb +1 -1
  5. metadata +23 -5
  6. data/README.md +0 -26
@@ -0,0 +1,29 @@
1
+ Sendln
2
+ ------
3
+ A simple ruby based mail sender.
4
+
5
+ Installation
6
+ ------------
7
+ * gem install sendln
8
+ * Create a file in your home directory (i.e. ~ on linux) called .sendln
9
+
10
+ Add in:
11
+ address: <smtp_server>
12
+ domain: <domain>
13
+ user_name: <your user name>
14
+ password: <your password>
15
+ email: <the email address that should be in the from field>
16
+
17
+
18
+ Usage
19
+ -----
20
+ sendln [to] [message]
21
+
22
+ TODO
23
+ ----
24
+ * -gemify-
25
+ * short name conact.yaml
26
+ - name => some@email
27
+ * oneline contacts
28
+ - list all contacts
29
+
data/bin/sendln CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  if ARGV.length != 2
4
- puts "Usage: #{__FILE__} [to] <message>"
4
+ puts "Usage: #{File.basename(__FILE__)} [to] <message>"
5
5
  Process.exit
6
6
  end
7
7
 
@@ -23,7 +23,7 @@ class Sendln < ActionMailer::Base
23
23
  def line(t, sub)
24
24
  from smtp_config["email"]
25
25
  recipients t
26
- subject "#{sub}<eom>"
27
- body ""
26
+ subject "#{sub} <eom>"
27
+ body sub
28
28
  end
29
29
  end
@@ -1,4 +1,4 @@
1
1
  class Sendln
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendln
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.0.2
4
+ hash: 25
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
6
11
  platform: ruby
7
12
  authors:
8
13
  - Kristoffer Roupe
@@ -10,7 +15,7 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2011-05-14 00:00:00 +02:00
18
+ date: 2011-05-17 00:00:00 +02:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
@@ -21,6 +26,11 @@ dependencies:
21
26
  requirements:
22
27
  - - "="
23
28
  - !ruby/object:Gem::Version
29
+ hash: 9
30
+ segments:
31
+ - 3
32
+ - 0
33
+ - 7
24
34
  version: 3.0.7
25
35
  type: :runtime
26
36
  version_requirements: *id001
@@ -35,7 +45,7 @@ extra_rdoc_files: []
35
45
 
36
46
  files:
37
47
  - .gitignore
38
- - README.md
48
+ - README.rdoc
39
49
  - bin/sendln
40
50
  - lib/sendln.rb
41
51
  - lib/version.rb
@@ -54,17 +64,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
64
  requirements:
55
65
  - - ">="
56
66
  - !ruby/object:Gem::Version
67
+ hash: 57
68
+ segments:
69
+ - 1
70
+ - 8
71
+ - 7
57
72
  version: 1.8.7
58
73
  required_rubygems_version: !ruby/object:Gem::Requirement
59
74
  none: false
60
75
  requirements:
61
76
  - - ">="
62
77
  - !ruby/object:Gem::Version
78
+ hash: 3
79
+ segments:
80
+ - 0
63
81
  version: "0"
64
82
  requirements: []
65
83
 
66
84
  rubyforge_project: sendln
67
- rubygems_version: 1.6.2
85
+ rubygems_version: 1.3.7
68
86
  signing_key:
69
87
  specification_version: 3
70
88
  summary: A simple ruby based mail sender
data/README.md DELETED
@@ -1,26 +0,0 @@
1
- Oneliner
2
- --------
3
- A simple ruby based mail sender.
4
-
5
- Installation
6
- ------------
7
- * Create a file in your home directory (i.e. ~ on linux) called .sendln
8
- * Add in:
9
- address: <smtp_server>
10
- domain: <domain>
11
- user_name: <your user name>
12
- password: <your password>
13
- email: <the email address that should be in the from field>
14
-
15
-
16
- Usage
17
- -----
18
- sendln [to] [message]
19
-
20
- TODO
21
- ----
22
- * -gemify-
23
- * short name conact.yaml
24
- - name => some@email
25
- * oneline contacts
26
- - list all contacts