newsletter 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34d92eca9bea6c0add79daa334bd161770f54466
4
- data.tar.gz: 7201f1ee597aa433b656635afc2f55c1b59b52ca
3
+ metadata.gz: 352e1f74d50f142eb7affcdf7c176b542c91da13
4
+ data.tar.gz: f7605dc507e7cb7d2a450d139cb141f9fa1551ed
5
5
  SHA512:
6
- metadata.gz: c5ac9e0c4b9b806ee7863f4c8927b2dd7499ebcb63e42b1a291211c5993d47310f41ef6bdccb5c06a6d7fef8ede1d4aaa3f88064efd864f23013940e3f65f2e4
7
- data.tar.gz: 317f06ca5d0bc1758b4ea05558bd5947e222c99c608bbf0fda42829e210d44476dcd5bdaae49a8e388f88c680f320a8c1f17a37e3b46c81e303b833108ce6370
6
+ metadata.gz: e5ca26e70dbf50f676821433d29858c745cd9d48646d8c16d81feb5ba8c27fd9242294458c22f4320d32176e349a1194570eb0bbb272a383ee04d60acf5286e1
7
+ data.tar.gz: 1441ee14b93a65cad1cc2960d24012ee0e228297e62f496bac0fe9b04d6638de3ed0d83a235e64c420dcb352de2f1e1aeda9a3acda7f3087a4a74760aebfe91e
data/README.md CHANGED
@@ -1,40 +1,56 @@
1
1
  Newsletter
2
2
  ==========
3
- Put some boilerplate here
3
+ Newsletters will be created from newsletter designs, which will allow users to add data to predefined elements such as articles and images where they have no need to know html or use a wysiwyg editor. The design defines what elements exist and where they can be placed in a layout.
4
+ Elements will be sortable/draggable within an area. There will be an archive page and newsletters can be published or hidden from this view as well as sorted. If the Mailing List Manager is also installed, published newsletters will be available as mailable objects when creating a mailing. Currently only an html design can be defined, and a plain text version is available by converting the html of the newsletter.
5
+
6
+ Online Documentation
7
+ --------------------
8
+ * [Homepage](http://ireachnews.com)
9
+ * [Github Wiki](https://github.com/LoneStarInternet/newsletter/wiki)
4
10
 
5
11
  Requirements
6
12
  ------------
7
13
 
8
- * Rails 3.2.x
9
- * Ruby 1.9.3-x
14
+ * Rails 3.2.x (currently tested against rails 3.2.21)
15
+ * Ruby 2.1.5 (currently tested against 2.1.5, we have also tested against 1.9.3 - but it is no longer supported by ruby devs)
10
16
  * [Bundler](http://bundler.io)
11
17
 
12
18
  Optional Dependencies
13
19
  ---------------------
14
20
  * [RVM](http://rvm.io) - How we control our ruby environment(mainly concerns development)
15
-
21
+ * currently we use github/git for our repository
16
22
 
17
23
  Installation
18
24
  ------------
19
25
  * using bundler, edit your Gemfile.. add a one of the following lines:
20
-
21
- gem 'mail_manager', '~>3' # this points to the latest rails stable 3.2.x version
22
- # OR
23
- gem 'mail_manager', git: 'https://github.com/LoneStarInternet/mail_manager.git', branch: 'rails3.2.x' # for the bleeding edge rails 3.2.x version
24
-
26
+ ```ruby
27
+ gem 'newsletter', '~>3' # this points to the latest rails stable 3.2.x version
28
+ # OR
29
+ gem 'newsletter', git: 'https://github.com/LoneStarInternet/newsletter.git', branch: 'rails3.2.x' # for the bleeding edge rails 3.2.x version
30
+ ```
25
31
  * then run bundle install:
26
-
32
+ ```
27
33
  bundle install
28
-
29
- * generate and configure the newsletter settings file at config/newsletter.yml: (replace table prefix with something... or nothing if you don't want to scope it)
30
-
34
+ ```
35
+ * generate and configure the newsletter settings file at config/newsletter.yml: (replace table prefix with something... or nothing if you don't want to scope it)
36
+ ```
31
37
  rake newsletter:default_app_config[table_prefix]
32
-
33
- * generate migrations
34
-
38
+ ```
39
+ * generate migrations
40
+ ```
35
41
  rake newsletter:import_migrations
36
-
42
+ ```
37
43
  * migrate the database
38
-
44
+ ```
39
45
  rake db:migrate
46
+ ```
47
+
48
+ Securing your App
49
+ -----------------
50
+ We implemented [CanCan](https://github.com/CanCanCommunity/cancancan). If you'd like to secure your actions to certain users and don't currently have any authorization in your app, you can follow the following steps if you want an easy config.. or you could make it more finely grained.. currently its all or nothing:
51
+ [See the wiki](https://github.com/LoneStarInternet/newsletter/wiki/Securing-your-app)
40
52
 
53
+ Development
54
+ -----------
55
+ If you wish to contribute, you should follow these instructions to get up and running:
56
+ [See the wiki](https://github.com/LoneStarInternet/newsletter/wiki/Contributing)
@@ -17,8 +17,7 @@ module Newsletter
17
17
  options_text << %Q| #{key}="#{ERB::Util.html_escape value}"|
18
18
  end
19
19
  %Q|<img src="#{ERB::Util.html_escape ::Newsletter.site_url +
20
- ::Newsletter.site_path +
21
- @newsletter.image_uri(image_filename).gsub(%r#^/#,'')
20
+ @newsletter.image_uri(image_filename)
22
21
  }"#{options_text}/>|.html_safe
23
22
  end
24
23
 
@@ -5,7 +5,7 @@
5
5
  <%= f.label :description %>
6
6
  <%= f.text_field :description %><br />
7
7
  <% unless @element.name.blank? %>
8
- <label>Design Filename</label>
8
+ <label>Element Filename</label>
9
9
  <div style="padding-top: 7px";><%= @element.file_path.gsub(/^#{::Newsletter.designs_path}/,'') %></div><br />
10
10
  <% end %>
11
11
  <%= f.label :html_text %>
@@ -1,3 +1,3 @@
1
1
  module Newsletter
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.2"
3
3
  end
@@ -3,6 +3,10 @@ ENV["Rails.env"] ||= "development"
3
3
  require "#{Rails.root}/config/environment"
4
4
 
5
5
  namespace :newsletter do
6
+ desc "Upgrade tasks" do
7
+ Rake::Task['newsletter:import_migrations'].invoke
8
+ Rake::Task['db:migrate'].invoke
9
+ end
6
10
  desc "Import Example Newsletter Design"
7
11
  task :import_example_design, :design_name do |t,args|
8
12
  Rails.logger.warn "Importing Example Newsletter Design with name: #{args.design_name}"
data/newsletter.gemspec CHANGED
@@ -7,12 +7,12 @@ require "newsletter/version"
7
7
  Gem::Specification.new do |gem|
8
8
  gem.name = "newsletter"
9
9
  gem.version = Newsletter::VERSION
10
- gem.authors = ["Lone Star Internet"]
11
- gem.email = ["biz@lone-star.net"]
10
+ gem.authors = ["Lone Star Internet", "Christopher Hauboldt"]
11
+ gem.email = ["biz@lone-star.net",'chauboldt@lone-star.net']
12
12
  gem.licenses = ['MIT']
13
13
  gem.description = %q{Newsletter templating and management system.}
14
14
  gem.summary = %q{Newsletter templating and management system which allows a designer to create templates that are email-friendly and allows a user to create newsletters with little html/css knowhow.}
15
- gem.homepage = "http://ireach.com"
15
+ gem.homepage = "http://ireachnews.com"
16
16
 
17
17
  gem.add_dependency "rails", "~>3.2"
18
18
  gem.add_dependency "jquery-rails", "~>3.1"
@@ -58,7 +58,7 @@ RSpec.describe Newsletter::NewslettersHelper, :type => :helper do
58
58
  design = import_design
59
59
  @newsletter = FactoryGirl.create(:newsletter, design: design)
60
60
  expect(design_image('newsletter_header.png',width: '100',class: 'neat_image')).to \
61
- eq(%Q|<img src="#{Newsletter.site_url}#{Newsletter.site_path}images/#{
61
+ eq(%Q|<img src="#{Newsletter.site_url}/images/#{
62
62
  design.name_as_path(design.name)
63
63
  }/newsletter_header.png" width="100" class="neat_image"/>|)
64
64
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newsletter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lone Star Internet
8
+ - Christopher Hauboldt
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2015-04-27 00:00:00.000000000 Z
12
+ date: 2015-04-28 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
@@ -153,6 +154,7 @@ dependencies:
153
154
  description: Newsletter templating and management system.
154
155
  email:
155
156
  - biz@lone-star.net
157
+ - chauboldt@lone-star.net
156
158
  executables: []
157
159
  extensions: []
158
160
  extra_rdoc_files: []
@@ -354,7 +356,7 @@ files:
354
356
  - spec/test_app/spec/support/files/iReach_logo.gif
355
357
  - spec/test_app/spec/support/files/test.pdf
356
358
  - spec/test_app/spec/support/functions.rb
357
- homepage: http://ireach.com
359
+ homepage: http://ireachnews.com
358
360
  licenses:
359
361
  - MIT
360
362
  metadata: {}